Asset CleanUp: Page Speed Booster - Version 1.2.7.6

Version Description

  • Bug Fix: "Everywhere" bulk unloads could not be removed from "Bulk Unloaded" page
Download this release

Release Info

Developer gabelivan
Plugin Icon 128x128 Asset CleanUp: Page Speed Booster
Version 1.2.7.6
Comparing to
See all releases

Code changes from version 1.2.7.5 to 1.2.7.6

Files changed (4) hide show
  1. classes/BulkUnloads.php +1 -1
  2. classes/Update.php +8 -5
  3. readme.txt +5 -2
  4. wpacu.php +2 -2
classes/BulkUnloads.php CHANGED
@@ -104,7 +104,7 @@ class BulkUnloads
104
  $wpacuUpdate = new Update;
105
 
106
  if ($this->wpacuFor === 'everywhere') {
107
- $removed = $wpacuUpdate->removeEverywhereUnloads();
108
 
109
  if ($removed) {
110
  add_action('admin_notices', array($this, 'noticeGlobalsRemoved'));
104
  $wpacuUpdate = new Update;
105
 
106
  if ($this->wpacuFor === 'everywhere') {
107
+ $removed = $wpacuUpdate->removeEverywhereUnloads(array(), array(), 'post');
108
 
109
  if ($removed) {
110
  add_action('admin_notices', array($this, 'noticeGlobalsRemoved'));
classes/Update.php CHANGED
@@ -339,10 +339,7 @@ class Update
339
  * Any global (all pages / everywhere) REMOVED?
340
  * Coming from a POST request
341
  */
342
- $stylesList = isset($_POST['wpacu_options_styles']) ? $_POST['wpacu_options_styles'] : array();
343
- $scriptsList = isset($_POST['wpacu_options_scripts']) ? $_POST['wpacu_options_scripts'] : array();
344
-
345
- $this->removeEverywhereUnloads($stylesList, $scriptsList);
346
  }
347
 
348
  /**
@@ -383,11 +380,17 @@ class Update
383
  /**
384
  * @param array $stylesList
385
  * @param array $scriptsList
 
386
  *
387
  * @return bool
388
  */
389
- public function removeEverywhereUnloads($stylesList = array(), $scriptsList = array())
390
  {
 
 
 
 
 
391
  $removeStylesList = $removeScriptsList = array();
392
 
393
  $isUpdated = false;
339
  * Any global (all pages / everywhere) REMOVED?
340
  * Coming from a POST request
341
  */
342
+ $this->removeEverywhereUnloads(array(), array(), 'post');
 
 
 
343
  }
344
 
345
  /**
380
  /**
381
  * @param array $stylesList
382
  * @param array $scriptsList
383
+ * @param string $checkType
384
  *
385
  * @return bool
386
  */
387
+ public function removeEverywhereUnloads($stylesList = array(), $scriptsList = array(), $checkType = '')
388
  {
389
+ if ($checkType === 'post') {
390
+ $stylesList = isset($_POST['wpacu_options_styles']) ? $_POST['wpacu_options_styles'] : array();
391
+ $scriptsList = isset($_POST['wpacu_options_scripts']) ? $_POST['wpacu_options_scripts'] : array();
392
+ }
393
+
394
  $removeStylesList = $removeScriptsList = array();
395
 
396
  $isUpdated = false;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: speed, pagespeed, page speed, cleanup, remove style, remove script, dequeu
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7GJZCW6RD8ECS
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
- Stable tag: 1.2.7.5
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -115,8 +115,11 @@ If that's the case, then it's advisable to consult with a developer (ideally the
115
  4. Scripts (.JS) are selected for site-wide unload
116
 
117
  == Changelog ==
 
 
 
118
  = 1.2.7.5 =
119
- * PHP Bug Fix: When inline CSS code was attached to a handle, it would trigger an error and prevent the assets from printing in the back-end view
120
 
121
  = 1.2.7.4 =
122
  * Added "Feature Request" link
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7GJZCW6RD8ECS
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
+ Stable tag: 1.2.7.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
115
  4. Scripts (.JS) are selected for site-wide unload
116
 
117
  == Changelog ==
118
+ = 1.2.7.6 =
119
+ * Bug Fix: "Everywhere" bulk unloads could not be removed from "Bulk Unloaded" page
120
+
121
  = 1.2.7.5 =
122
+ * Bug Fix: When inline CSS code was attached to a handle, it would trigger an error and prevent the assets from printing in the back-end view
123
 
124
  = 1.2.7.4 =
125
  * Added "Feature Request" link
wpacu.php CHANGED
@@ -2,13 +2,13 @@
2
  /*
3
  * Plugin Name: Asset CleanUp: Page Speed Booster
4
  * Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
- * Version: 1.2.7.5
6
  * Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages to reduce HTTP Requests and have the website load faster
7
  * Author: Gabriel Livan
8
  * Author URI: http://www.gabelivan.com/
9
  */
10
 
11
- define('WPACU_PLUGIN_VERSION', '1.2.7.5');
12
 
13
  // Exit if accessed directly
14
  if (! defined('ABSPATH')) {
2
  /*
3
  * Plugin Name: Asset CleanUp: Page Speed Booster
4
  * Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
+ * Version: 1.2.7.6
6
  * Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages to reduce HTTP Requests and have the website load faster
7
  * Author: Gabriel Livan
8
  * Author URI: http://www.gabelivan.com/
9
  */
10
 
11
+ define('WPACU_PLUGIN_VERSION', '1.2.7.6');
12
 
13
  // Exit if accessed directly
14
  if (! defined('ABSPATH')) {