Version Description
Release date June 14th, 2022 * Fix: a fatal error showed up in some cases right after updating the plugin, which is now fixed; * Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 obsoleted.
Download this release
Release Info
| Developer | petredobrescu |
| Plugin | |
| Version | 5.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 5.0.0 to 5.0.1
- class/Helper/InstallHelper.php +6 -2
- readme.txt +6 -1
- shortpixel-plugin.php +3 -2
- wp-shortpixel.php +2 -2
class/Helper/InstallHelper.php
CHANGED
|
@@ -30,18 +30,22 @@ class InstallHelper
|
|
| 30 |
\WPShortPixelSettings::onActivate();
|
| 31 |
OptimizeController::resetQueues();
|
| 32 |
|
| 33 |
-
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
public static function deactivatePlugin()
|
| 37 |
{
|
|
|
|
| 38 |
$settings = \wpSPIO()->settings();
|
| 39 |
$settings::onDeactivate();
|
| 40 |
|
| 41 |
$env = wpSPIO()->env();
|
| 42 |
|
| 43 |
if (! $env->is_nginx)
|
|
|
|
| 44 |
\ShortPixelTools::alterHtaccess(false, false);
|
|
|
|
| 45 |
|
| 46 |
// save remove.
|
| 47 |
$fs = new FileSystemController();
|
|
@@ -113,7 +117,7 @@ class InstallHelper
|
|
| 113 |
$plugin = sanitize_text_field($_GET['plugin']); // our target.
|
| 114 |
|
| 115 |
deactivate_plugins($plugin);
|
| 116 |
-
|
| 117 |
wp_safe_redirect($url);
|
| 118 |
die();
|
| 119 |
|
| 30 |
\WPShortPixelSettings::onActivate();
|
| 31 |
OptimizeController::resetQueues();
|
| 32 |
|
| 33 |
+
|
| 34 |
+
$settings->currentVersion = SHORTPIXEL_IMAGE_OPTIMISER_VERSION;
|
| 35 |
}
|
| 36 |
|
| 37 |
public static function deactivatePlugin()
|
| 38 |
{
|
| 39 |
+
|
| 40 |
$settings = \wpSPIO()->settings();
|
| 41 |
$settings::onDeactivate();
|
| 42 |
|
| 43 |
$env = wpSPIO()->env();
|
| 44 |
|
| 45 |
if (! $env->is_nginx)
|
| 46 |
+
{
|
| 47 |
\ShortPixelTools::alterHtaccess(false, false);
|
| 48 |
+
}
|
| 49 |
|
| 50 |
// save remove.
|
| 51 |
$fs = new FileSystemController();
|
| 117 |
$plugin = sanitize_text_field($_GET['plugin']); // our target.
|
| 118 |
|
| 119 |
deactivate_plugins($plugin);
|
| 120 |
+
|
| 121 |
wp_safe_redirect($url);
|
| 122 |
die();
|
| 123 |
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: convert webp, optimize images, image optimization, resize, compressor, ima
|
|
| 4 |
Requires at least: 4.8.0
|
| 5 |
Tested up to: 6.0
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 5.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -309,6 +309,11 @@ Add HTTP basic authentication credentials by defining these constants in wp-conf
|
|
| 309 |
|
| 310 |
== Changelog ==
|
| 311 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 312 |
= 5.0.0 =
|
| 313 |
Release date June 14th, 2022
|
| 314 |
|
| 4 |
Requires at least: 4.8.0
|
| 5 |
Tested up to: 6.0
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 5.0.1
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 309 |
|
| 310 |
== Changelog ==
|
| 311 |
|
| 312 |
+
= 5.0.1 =
|
| 313 |
+
Release date June 14th, 2022
|
| 314 |
+
* Fix: a fatal error showed up in some cases right after updating the plugin, which is now fixed;
|
| 315 |
+
* Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 obsoleted.
|
| 316 |
+
|
| 317 |
= 5.0.0 =
|
| 318 |
Release date June 14th, 2022
|
| 319 |
|
shortpixel-plugin.php
CHANGED
|
@@ -63,8 +63,6 @@ class ShortPixelPlugin
|
|
| 63 |
return;
|
| 64 |
}
|
| 65 |
|
| 66 |
-
$this->check_plugin_version();
|
| 67 |
-
|
| 68 |
$front = new Controller\FrontController();
|
| 69 |
$admin = Controller\AdminController::getInstance();
|
| 70 |
$adminNotices = Controller\AdminNoticesController::getInstance(); // Hook in the admin notices.
|
|
@@ -73,6 +71,7 @@ class ShortPixelPlugin
|
|
| 73 |
$this->ajaxHooks();
|
| 74 |
|
| 75 |
|
|
|
|
| 76 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
| 77 |
WPCliController::getInstance();
|
| 78 |
}
|
|
@@ -84,6 +83,8 @@ class ShortPixelPlugin
|
|
| 84 |
/** Mainline Admin Init. Tasks that can be loaded later should go here */
|
| 85 |
public function init()
|
| 86 |
{
|
|
|
|
|
|
|
| 87 |
|
| 88 |
$notices = Notices::getInstance(); // This hooks the ajax listener
|
| 89 |
$quotaController = QuotaController::getInstance();
|
| 63 |
return;
|
| 64 |
}
|
| 65 |
|
|
|
|
|
|
|
| 66 |
$front = new Controller\FrontController();
|
| 67 |
$admin = Controller\AdminController::getInstance();
|
| 68 |
$adminNotices = Controller\AdminNoticesController::getInstance(); // Hook in the admin notices.
|
| 71 |
$this->ajaxHooks();
|
| 72 |
|
| 73 |
|
| 74 |
+
|
| 75 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
| 76 |
WPCliController::getInstance();
|
| 77 |
}
|
| 83 |
/** Mainline Admin Init. Tasks that can be loaded later should go here */
|
| 84 |
public function init()
|
| 85 |
{
|
| 86 |
+
// This runs activation thing. Should be -after- init
|
| 87 |
+
$this->check_plugin_version();
|
| 88 |
|
| 89 |
$notices = Notices::getInstance(); // This hooks the ajax listener
|
| 90 |
$quotaController = QuotaController::getInstance();
|
wp-shortpixel.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: ShortPixel Image Optimizer
|
| 4 |
* Plugin URI: https://shortpixel.com/
|
| 5 |
* Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="/wp-admin/options-general.php?page=wp-shortpixel-settings" target="_blank">Settings > ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
|
| 6 |
-
* Version: 5.0.
|
| 7 |
* Author: ShortPixel
|
| 8 |
* Author URI: https://shortpixel.com
|
| 9 |
* GitHub Plugin URI: https://github.com/short-pixel-optimizer/shortpixel-image-optimiser
|
|
@@ -30,7 +30,7 @@ if (! defined('SHORTPIXEL_RESET_ON_ACTIVATE'))
|
|
| 30 |
define('SHORTPIXEL_PLUGIN_FILE', __FILE__);
|
| 31 |
define('SHORTPIXEL_PLUGIN_DIR', __DIR__);
|
| 32 |
|
| 33 |
-
define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "5.0.
|
| 34 |
|
| 35 |
define('SHORTPIXEL_BACKUP', 'ShortpixelBackups');
|
| 36 |
define('SHORTPIXEL_MAX_FAIL_RETRIES', 3);
|
| 3 |
* Plugin Name: ShortPixel Image Optimizer
|
| 4 |
* Plugin URI: https://shortpixel.com/
|
| 5 |
* Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="/wp-admin/options-general.php?page=wp-shortpixel-settings" target="_blank">Settings > ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
|
| 6 |
+
* Version: 5.0.1
|
| 7 |
* Author: ShortPixel
|
| 8 |
* Author URI: https://shortpixel.com
|
| 9 |
* GitHub Plugin URI: https://github.com/short-pixel-optimizer/shortpixel-image-optimiser
|
| 30 |
define('SHORTPIXEL_PLUGIN_FILE', __FILE__);
|
| 31 |
define('SHORTPIXEL_PLUGIN_DIR', __DIR__);
|
| 32 |
|
| 33 |
+
define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "5.0.1");
|
| 34 |
|
| 35 |
define('SHORTPIXEL_BACKUP', 'ShortpixelBackups');
|
| 36 |
define('SHORTPIXEL_MAX_FAIL_RETRIES', 3);
|
