Asset CleanUp: Page Speed Booster - Version 1.3.8.4

Version Description

  • Fix: Warning: Undefined array key "show_assets_meta_box" in [...]/wp-content/plugins/wp-asset-clean-up/classes/Settings.php on line 461
Download this release

Release Info

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

Code changes from version 1.3.8.3 to 1.3.8.4

classes/Settings.php CHANGED
@@ -458,7 +458,7 @@ class Settings
458
  // "show_assets_meta_box" is either 0 or 1
459
  // if it doesn't exist, it was never saved (the user didn't update the settings after updating to 1.2.0.1)
460
  // Thus it will be activated by default: 1
461
- if ( $settings['show_assets_meta_box'] === '' ) {
462
  $settings['show_assets_meta_box'] = 1;
463
  }
464
  }
458
  // "show_assets_meta_box" is either 0 or 1
459
  // if it doesn't exist, it was never saved (the user didn't update the settings after updating to 1.2.0.1)
460
  // Thus it will be activated by default: 1
461
+ if ( ! isset($settings['show_assets_meta_box']) || $settings['show_assets_meta_box'] === '' ) {
462
  $settings['show_assets_meta_box'] = 1;
463
  }
464
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: minify css, minify javascript, defer css javascript, page speed, dequeue,
4
  Donate link: https://www.gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
5
  Requires at least: 4.5
6
  Tested up to: 5.8.1
7
- Stable tag: 1.3.8.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -190,6 +190,9 @@ With the recently released "Test Mode" feature, you can safely unload assets on
190
  4. Homepage CSS & JS Management (List sorted by location)
191
 
192
  == Changelog ==
 
 
 
193
  = 1.3.8.3 =
194
  * Automatically preload any combined JS files within the BODY tag (that do not have any "defer" or "async" attribute) to improve the Google PageSpeed Insights score for the following: "Preload key requests"
195
  * Reorganised the layout for "Manage in the Dashboard" from "Settings" -> "Plugin Usage Preferences"
4
  Donate link: https://www.gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
5
  Requires at least: 4.5
6
  Tested up to: 5.8.1
7
+ Stable tag: 1.3.8.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
190
  4. Homepage CSS & JS Management (List sorted by location)
191
 
192
  == Changelog ==
193
+ = 1.3.8.4 =
194
+ * Fix: Warning: Undefined array key "show_assets_meta_box" in [...]/wp-content/plugins/wp-asset-clean-up/classes/Settings.php on line 461
195
+
196
  = 1.3.8.3 =
197
  * Automatically preload any combined JS files within the BODY tag (that do not have any "defer" or "async" attribute) to improve the Google PageSpeed Insights score for the following: "Preload key requests"
198
  * Reorganised the layout for "Manage in the Dashboard" from "Settings" -> "Plugin Usage Preferences"
templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php CHANGED
@@ -37,7 +37,7 @@ foreach (\WpAssetCleanUp\MetaBoxes::$noMetaBoxesForPostTypes as $noMetaBoxesForP
37
   
38
  <?php _e('This will show the list of assets in a meta box on edit the post (any type) / page within the Dashboard', 'wp-asset-clean-up'); ?>
39
 
40
- <div id="wpacu_manage_dashboard_assets_list">
41
  <p><?php _e('The assets would be retrieved via AJAX call(s) that will fetch the post/page URL and extract all the styles &amp; scripts that are enqueued.', 'wp-asset-clean-up'); ?></p>
42
  <p><?php _e('Note that sometimes the assets list is not loading within the Dashboard. That could be because "mod_security" Apache module is enabled or some security plugins are blocking the AJAX request. If this option doesn\'t work, consider managing the list in the front-end view.', 'wp-asset-clean-up'); ?></p>
43
 
@@ -154,7 +154,7 @@ foreach (\WpAssetCleanUp\MetaBoxes::$noMetaBoxesForPostTypes as $noMetaBoxesForP
154
  &nbsp;
155
  If you are logged in, this will make the list of assets show below the page that you view (either home page, a post or a page).
156
 
157
- <div id="wpacu_frontend_manage_assets_list">
158
  <p style="margin-top: 10px;">The area will be shown through the <code>wp_footer</code> action so in case you do not see the asset list at the bottom of the page, make sure the theme is using <a href="https://codex.wordpress.org/Function_Reference/wp_footer"><code>wp_footer()</code></a> function before the <code>&lt;/body&gt;</code> tag. Any theme that follows the standards should have it. If not, you will have to add it to make sure other plugins and code from functions.php will work fine.</p>
159
 
160
  <div id="wpacu-settings-frontend-exceptions" <?php if (! ($data['frontend_show'] == 1)) { echo 'style="display: none;"'; } ?>>
37
  &nbsp;
38
  <?php _e('This will show the list of assets in a meta box on edit the post (any type) / page within the Dashboard', 'wp-asset-clean-up'); ?>
39
 
40
+ <div id="wpacu_manage_dashboard_assets_list" <?php if ($data['dashboard_show'] != 1) { echo 'style="opacity: 0.4;"'; } ?>>
41
  <p><?php _e('The assets would be retrieved via AJAX call(s) that will fetch the post/page URL and extract all the styles &amp; scripts that are enqueued.', 'wp-asset-clean-up'); ?></p>
42
  <p><?php _e('Note that sometimes the assets list is not loading within the Dashboard. That could be because "mod_security" Apache module is enabled or some security plugins are blocking the AJAX request. If this option doesn\'t work, consider managing the list in the front-end view.', 'wp-asset-clean-up'); ?></p>
43
 
154
  &nbsp;
155
  If you are logged in, this will make the list of assets show below the page that you view (either home page, a post or a page).
156
 
157
+ <div id="wpacu_frontend_manage_assets_list" <?php if ($data['frontend_show'] != 1) { echo 'style="opacity: 0.4;"'; } ?>>
158
  <p style="margin-top: 10px;">The area will be shown through the <code>wp_footer</code> action so in case you do not see the asset list at the bottom of the page, make sure the theme is using <a href="https://codex.wordpress.org/Function_Reference/wp_footer"><code>wp_footer()</code></a> function before the <code>&lt;/body&gt;</code> tag. Any theme that follows the standards should have it. If not, you will have to add it to make sure other plugins and code from functions.php will work fine.</p>
159
 
160
  <div id="wpacu-settings-frontend-exceptions" <?php if (! ($data['frontend_show'] == 1)) { echo 'style="display: none;"'; } ?>>
wpacu.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Plugin Name: Asset CleanUp: Page Speed Booster
4
  * Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
- * Version: 1.3.8.3
6
  * Description: Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, Combine/Minify CSS/JS files
7
  * Author: Gabe Livan
8
  * Author URI: http://gabelivan.com/
@@ -27,7 +27,7 @@ if ( (defined('WPACU_PRO_NO_LITE_NEEDED') && WPACU_PRO_NO_LITE_NEEDED !== false
27
 
28
  // Is the Pro version triggered before the Lite one and are both plugins active?
29
  if (! defined('WPACU_PLUGIN_VERSION')) {
30
- define('WPACU_PLUGIN_VERSION', '1.3.8.3');
31
  }
32
 
33
  // Exit if accessed directly
2
  /*
3
  * Plugin Name: Asset CleanUp: Page Speed Booster
4
  * Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
+ * Version: 1.3.8.4
6
  * Description: Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, Combine/Minify CSS/JS files
7
  * Author: Gabe Livan
8
  * Author URI: http://gabelivan.com/
27
 
28
  // Is the Pro version triggered before the Lite one and are both plugins active?
29
  if (! defined('WPACU_PLUGIN_VERSION')) {
30
+ define('WPACU_PLUGIN_VERSION', '1.3.8.4');
31
  }
32
 
33
  // Exit if accessed directly