Asset CleanUp: Page Speed Booster - Version 1.2.6.7

Version Description

  • Bug Fix: "Unload on All Pages of [post type here] post type" was not showing within the Dashboard view
Download this release

Release Info

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

Code changes from version 1.2.6.6 to 1.2.6.7

Files changed (4) hide show
  1. classes/Main.php +10 -8
  2. classes/Menu.php +0 -11
  3. readme.txt +5 -2
  4. wpacu.php +1 -4
classes/Main.php CHANGED
@@ -988,17 +988,19 @@ class Main
988
$data['is_bulk_unloadable'] = $data['bulk_unloaded_type'] = false;
989
990
// Post Information
991
- if ($this->isSingularPage()) {
992
$postData = get_post( $postId );
993
994
- // Current Post Type
995
- $data['post_type'] = $postData->post_type;
996
997
- // Are there any assets unloaded for this specific post type?
998
- // (e.g. page, post, product (from WooCommerce) or other custom post type)
999
- $data['bulk_unloaded']['post_type'] = $this->getBulkUnload('post_type', $data['post_type']);
1000
- $data['bulk_unloaded_type'] = 'post_type';
1001
- $data['is_bulk_unloadable'] = true;
1002
}
1003
1004
// If the premium extension is enabled, it will also pull the other bulk unloads
988
$data['is_bulk_unloadable'] = $data['bulk_unloaded_type'] = false;
989
990
// Post Information
991
+ if ($postId > 0) {
992
$postData = get_post( $postId );
993
994
+ if (isset($postData->post_type)) {
995
+ // Current Post Type
996
+ $data['post_type'] = $postData->post_type;
997
998
+ // Are there any assets unloaded for this specific post type?
999
+ // (e.g. page, post, product (from WooCommerce) or other custom post type)
1000
+ $data['bulk_unloaded']['post_type'] = $this->getBulkUnload( 'post_type', $data['post_type'] );
1001
+ $data['bulk_unloaded_type'] = 'post_type';
1002
+ $data['is_bulk_unloadable'] = true;
1003
+ }
1004
}
1005
1006
// If the premium extension is enabled, it will also pull the other bulk unloads
classes/Menu.php CHANGED
@@ -63,17 +63,6 @@ class Menu
63
array(new BulkUnloads, 'pageBulkUnloads')
64
);
65
66
- if (WPACU_PLUGIN_HAS_PREMIUM_EXT !== false) {
67
- add_submenu_page(
68
- self::$slug,
69
- __('Custom Unload Rules', WPACU_PLUGIN_NAME),
70
- __('Custom Unload Rules', WPACU_PLUGIN_NAME),
71
- self::$capability,
72
- WPACU_PLUGIN_NAME . '_advanced_rules',
73
- array(new AdvancedRules, 'page')
74
- );
75
- }
76
-
77
// Get Help | Support Page
78
add_submenu_page(
79
self::$slug,
63
array(new BulkUnloads, 'pageBulkUnloads')
64
);
65
66
// Get Help | Support Page
67
add_submenu_page(
68
self::$slug,
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === WP Asset CleanUp (Page Speed Optimizer) ===
2
Contributors: gabelivan
3
Tags: speed, pagespeed, dequeue style, dequeue script, unload style, unload script, disable emojis
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.6.6
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
@@ -102,6 +102,9 @@ If that's the case, then it's advisable to consult with a developer (ideally the
102
4. Scripts (.JS) are selected for site-wide unload
103
104
== Changelog ==
105
= 1.2.6.6 =
106
* Bug Fix: Assets were not retrieved within in the Dashboard for the home page
107
* Compatible with WP Asset CleanUp Pro
1
+ === WP Asset CleanUp Lite (Page Speed Optimizer) ===
2
Contributors: gabelivan
3
Tags: speed, pagespeed, dequeue style, dequeue script, unload style, unload script, disable emojis
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.6.7
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
102
4. Scripts (.JS) are selected for site-wide unload
103
104
== Changelog ==
105
+ = 1.2.6.7 =
106
+ * Bug Fix: "Unload on All Pages of [post type here] post type" was not showing within the Dashboard view
107
+
108
= 1.2.6.6 =
109
* Bug Fix: Assets were not retrieved within in the Dashboard for the home page
110
* Compatible with WP Asset CleanUp Pro
wpacu.php CHANGED
@@ -2,7 +2,7 @@
2
/*
3
* Plugin Name: WP Asset CleanUp Lite (Page Speed Optimizer)
4
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
- * Version: 1.2.6.6
6
* Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages that you don't need
7
* Author: Gabriel Livan
8
* Author URI: http://www.gabelivan.com/
@@ -24,9 +24,6 @@ define('WPACU_PLUGIN_FILE', __FILE__);
24
define('WPACU_PLUGIN_BASE', plugin_basename(WPACU_PLUGIN_FILE));
25
define('WPACU_PLUGIN_URL', plugins_url('', WPACU_PLUGIN_FILE));
26
27
- // Whenever the premium extension is ready to be sold, this can be set to 'true'
28
- define('WPACU_PLUGIN_HAS_PREMIUM_EXT', false);
29
-
30
// Do not load the plugin if the PHP version is below 5.3
31
$wpacuWrongPhp = version_compare(PHP_VERSION, '5.3.0', '<');
32
2
/*
3
* Plugin Name: WP Asset CleanUp Lite (Page Speed Optimizer)
4
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
+ * Version: 1.2.6.7
6
* Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages that you don't need
7
* Author: Gabriel Livan
8
* Author URI: http://www.gabelivan.com/
24
define('WPACU_PLUGIN_BASE', plugin_basename(WPACU_PLUGIN_FILE));
25
define('WPACU_PLUGIN_URL', plugins_url('', WPACU_PLUGIN_FILE));
26
27
// Do not load the plugin if the PHP version is below 5.3
28
$wpacuWrongPhp = version_compare(PHP_VERSION, '5.3.0', '<');
29