diff --git a/includes/class-fs-plugin-updater.php b/includes/class-fs-plugin-updater.php index c54c190b..867ea078 100755 --- a/includes/class-fs-plugin-updater.php +++ b/includes/class-fs-plugin-updater.php @@ -106,6 +106,8 @@ private function filters() { if ( ! $this->_fs->has_any_active_valid_license() ) { add_action( 'admin_head', array( &$this, 'catch_plugin_information_dialog_contents' ) ); + } else { + add_action( 'admin_footer', array( &$this, '_add_fs_allow_updater_and_dialog_request_param' ) ); } if ( ! WP_FS__IS_PRODUCTION_MODE ) { @@ -129,15 +131,48 @@ private function filters() { } } + /** + * @author Leo Fajardo (@leorw) + * @since 2.7.4 + */ + function _add_fs_allow_updater_and_dialog_request_param() { + if ( ! $this->is_plugin_information_dialog_for_plugin() ) { + return; + } + ?> + + _fs->get_slug() === fs_request_get_raw( 'plugin', false ) + ); + } + /** * @author Leo Fajardo (@leorw) * @since 2.1.4 */ function catch_plugin_information_dialog_contents() { - if ( - 'plugin-information' !== fs_request_get( 'tab', false ) || - $this->_fs->get_slug() !== fs_request_get_raw( 'plugin', false ) - ) { + if ( ! $this->is_plugin_information_dialog_for_plugin() ) { return; } diff --git a/start.php b/start.php index ae9b7d78..a18aa348 100644 --- a/start.php +++ b/start.php @@ -15,7 +15,7 @@ * * @var string */ - $this_sdk_version = '2.7.3.1'; + $this_sdk_version = '2.7.3.2'; #region SDK Selection Logic --------------------------------------------------------------------