Skip to content

Commit

Permalink
2.0.3 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sybrew committed Jan 28, 2019
1 parent bb8406e commit 39568cd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 7 deletions.
4 changes: 2 additions & 2 deletions inc/classes/loadadmin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ final protected function handle_update_nonce( $key = 'default', $check_post = tr
if ( isset( $validated[ $key ] ) )
return $validated[ $key ];

if ( false === $this->is_tsf_extension_manager_page() && false === $this->can_do_settings() )
if ( ! $this->is_tsf_extension_manager_page() || ! $this->can_do_settings() )
return $validated[ $key ] = false;

if ( $check_post ) {
Expand Down Expand Up @@ -553,7 +553,7 @@ final protected function handle_update_nonce( $key = 'default', $check_post = tr
*/
public function do_activation_notice() {

if ( $this->is_plugin_activated() || false === $this->can_do_settings() || $this->is_tsf_extension_manager_page() )
if ( $this->is_plugin_activated() || ! $this->can_do_settings() || $this->is_tsf_extension_manager_page() )
return;

$text = \__( 'Your extensions are only three clicks away', 'the-seo-framework-extension-manager' );
Expand Down
15 changes: 12 additions & 3 deletions inc/traits/core/ui.trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ final public function footer_wrap() {
* @param string $hook The current page hook.
*/
final protected function enqueue_admin_scripts() {
\the_seo_framework()->Scripts()::prepare();

// PHP < 7.0 compat: set class name in variable...
$scripts = \the_seo_framework()->Scripts();
$scripts::prepare();

//* Enqueue default scripts.
\add_action( 'tsfem_before_enqueue_scripts', [ $this, '_register_default_scripts' ] );
Expand Down Expand Up @@ -215,6 +218,8 @@ final public function _register_default_scripts( $scripts ) {

\the_seo_framework()->init_admin_scripts();

// PHP < 7.0 compat: set class name in variable...
$scripts = \the_seo_framework()->Scripts();
$scripts::register( [
[
'id' => 'tsfem',
Expand Down Expand Up @@ -276,7 +281,9 @@ final public function _register_default_scripts( $scripts ) {
final protected function register_form_scripts() {
static $registered = false;
if ( $registered ) return;
\the_seo_framework()->Scripts()::register( [
// PHP < 7.0 compat: set class name in variable...
$scripts = \the_seo_framework()->Scripts();
$scripts::register( [
[
'id' => 'tsfem-form',
'type' => 'css',
Expand Down Expand Up @@ -351,7 +358,9 @@ final protected function register_form_scripts() {
final protected function register_media_scripts() {
static $registered = false;
if ( $registered ) return;
\the_seo_framework()->Scripts()::register( [
// PHP < 7.0 compat: set class name in variable...
$scripts = \the_seo_framework()->Scripts();
$scripts::register( [
[
'id' => 'tsfem-media',
'type' => 'js',
Expand Down
14 changes: 14 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@ If you were to get a plugin activation error, either open a support ticket [here

== Changelog ==

= 2.0.3 =

**Release date:**

* January 28th, 2019

**Plugin Improvements:**

* **Fixed:** The plugin no longer causes an error in the WordPress administrative dashboard on PHP 5.6 or below.

= 2.0.2 =

**Release date:**
Expand All @@ -193,6 +203,10 @@ If you were to get a plugin activation error, either open a support ticket [here
* **Fixed:** Extension-related post meta with special HTML characters entered will no longer cause the extension metadata to corrupt on save.
* This issue was found during a security checkup (which passed). Luckily, it's yet unlikely that users would encounter this issue.

**In 2.0.2a:**

* **Fixed:** PHP 5.5~5.6 no longer encounter errors in the admin area.

**Added Translations:**

* Russian. Thank you [Vitaliy Ralle](https://profiles.wordpress.org/vit-1/)!
Expand Down
4 changes: 2 additions & 2 deletions the-seo-framework-extension-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: The SEO Framework - Extension Manager
* Plugin URI: https://theseoframework.com/extension-manager/
* Description: Add more powerful SEO features to The SEO Framework right from your WordPress Dashboard.
* Version: 2.0.2
* Version: 2.0.3
* Author: Sybre Waaijer
* Author URI: https://theseoframework.com/
* License: GPLv3
Expand Down Expand Up @@ -39,7 +39,7 @@
* The plugin version. Always 3 point.
* @since 1.0.0
*/
define( 'TSF_EXTENSION_MANAGER_VERSION', '2.0.2' );
define( 'TSF_EXTENSION_MANAGER_VERSION', '2.0.3' );

/**
* The plugin's database version.
Expand Down

0 comments on commit 39568cd

Please sign in to comment.