Skip to content

Commit 45fa7e8

Browse files
committed
Prepare version 1.1.2
- fixed issue #6 - Notification Bell
1 parent 19cfeeb commit 45fa7e8

File tree

4 files changed

+39
-12
lines changed

4 files changed

+39
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Once the plugin is cloned, enter your site admin dashboard and go to _wp-admin >
2222

2323
### How to install from ZIP archive
2424

25-
You can install this plugin from the [ZIP file](https://drive.google.com/file/d/12d8KIT6_nkiRytgbVNhpfkjuQLesqmBu/view) as any other plugin. Follow [this instruction](https://wordpress.org/support/article/managing-plugins/#upload-via-wordpress-admin).
25+
You can install this plugin from the [ZIP file](https://drive.google.com/file/d/15YDvFMcfVFAixVLI4n3jbwFQZrgz6Rfu/view) as any other plugin. Follow [this instruction](https://wordpress.org/support/article/managing-plugins/#upload-via-wordpress-admin).
2626

2727
## How to use
2828

includes/core/class-assets.php

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,34 @@ public function dequeue_assets( $ext ) {
203203
} else {
204204
return false;
205205
}
206+
if ( empty( $this->wp_dependencies->queue ) ) {
207+
return false;
208+
}
206209

207-
if ( isset( $this->wp_dependencies->queue ) && is_array( $this->wp_dependencies->queue ) ) {
208-
foreach ( $this->wp_dependencies->queue as $handle ) {
209-
if ( $this->is_ultimatemember_file( $this->wp_dependencies->registered[ $handle ] ) ) {
210-
$this->wp_dependencies->dequeue( $handle );
211-
}
210+
$not_dequeue_def = array(
211+
'um_notifications',
212+
);
213+
214+
/**
215+
* Hook: um_optimize_not_dequeue
216+
*
217+
* Type: filter
218+
*
219+
* Description: Extends an array of assets that should not be dequeued.
220+
*
221+
* @since 1.1.3
222+
*
223+
* @param {array} $not_dequeue_def An array of assets that should not be dequeued.
224+
* @param {string} $ext A type of assets: css or js.
225+
*/
226+
$not_dequeue = apply_filters( 'um_optimize_not_dequeue', $not_dequeue_def, $ext );
227+
228+
foreach ( $this->wp_dependencies->queue as $handle ) {
229+
if ( in_array( $handle, $not_dequeue, true ) ) {
230+
continue;
231+
}
232+
if ( $this->is_ultimatemember_file( $this->wp_dependencies->registered[ $handle ] ) ) {
233+
$this->wp_dependencies->dequeue( $handle );
212234
}
213235
}
214236
}

readme.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Author URI: https://github.com/umdevelopera
55
Plugin URI: https://github.com/umdevelopera/um-optimize
66
Tags: ultimate member, optimize, assets
77
Requires at least: 5.5
8-
Tested up to: 6.4.2
8+
Tested up to: 6.5.4
99
Requires UM core at least: 2.6.8
10-
Tested UM core up to: 2.8.0
11-
Stable tag: 1.1.1
10+
Tested UM core up to: 2.8.6
11+
Stable tag: 1.1.2
1212
License: GNU Version 2 or Any Later Version
1313
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
1414

@@ -36,6 +36,11 @@ You can install this plugin from the ZIP file as any other plugin. Follow this i
3636

3737
== Changelog ==
3838

39+
= 1.1.2: June 13, 2024 =
40+
41+
* Fixed: Issue #2 - Error when "Combine CSS" is active.
42+
* Fixed: Issue #3 - Folder um_optimize missing.
43+
3944
= 1.1.1: December 17, 2023 =
4045

4146
* Fixed: Add non-UM dependencies to combined files.

um-optimize.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* Text Domain: um-optimize
99
* Domain Path: /languages
1010
*
11-
* Version: 1.1.1
12-
* UM version: 2.7.0
11+
* Version: 1.1.2
12+
* UM version: 2.8.6
1313
* Requires at least: 5.5
1414
* Requires PHP: 5.6
1515
*
16-
* @package UM Extended
16+
* @package UM Tools
1717
*/
1818

1919
if ( ! defined( 'ABSPATH' ) ) {

0 commit comments

Comments
 (0)