diff --git a/includes/class-fs-plugin-updater.php b/includes/class-fs-plugin-updater.php index 3f76f335..cc13c64f 100755 --- a/includes/class-fs-plugin-updater.php +++ b/includes/class-fs-plugin-updater.php @@ -1079,8 +1079,15 @@ function plugins_api_filter( $data, $action = '', $args = null ) { $addon_version : $this->_fs->get_plugin_version(); - // Get plugin's newest update. - $new_version = $this->get_latest_download_details( $is_addon ? $addon->id : false, $plugin_version ); + // Get plugin's newest update. If it's a view details request, we want the latest available readme information not necessary the latest available version is newer than the current version. + if ( + 'plugin-information' === fs_request_get( 'tab', false ) && + $this->_fs->get_slug() === fs_request_get('plugin', false) + ) { + $new_version = $this->get_latest_download_details( $is_addon ? $addon->id : false ); + } + else + $new_version = $this->get_latest_download_details( $is_addon ? $addon->id : false, $plugin_version ); if ( ! is_object( $new_version ) || empty( $new_version->version ) ) { $data->version = $plugin_version;