From 3c3424d84a664b7bf613dcb3e7e24f054d437907 Mon Sep 17 00:00:00 2001 From: Raj Mohan <68589327+rajmohanreddy774@users.noreply.github.com> Date: Tue, 19 May 2026 23:23:26 +0530 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20resolve=20wp.org=20compliance=20issu?= =?UTF-8?q?es=20=E2=80=94=20implicit=20global=20and=20handle=20collision?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class-bsf-admin-notices.php | 12 ++++++------ notices.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/class-bsf-admin-notices.php b/class-bsf-admin-notices.php index e0c866f..a2e47c9 100644 --- a/class-bsf-admin-notices.php +++ b/class-bsf-admin-notices.php @@ -202,11 +202,11 @@ public function dismiss_notice() { * @return void */ public function enqueue_scripts() { - wp_register_style( 'astra-notices', self::get_url() . 'notices.css', array(), self::$version ); - wp_register_script( 'astra-notices', self::get_url() . 'notices.js', array( 'jquery' ), self::$version, true ); + wp_register_style( 'bsf-astra-notices', self::get_url() . 'notices.css', array(), self::$version ); + wp_register_script( 'bsf-astra-notices', self::get_url() . 'notices.js', array( 'jquery' ), self::$version, true ); wp_localize_script( - 'astra-notices', - 'astraNotices', + 'bsf-astra-notices', + 'bsfAstraNotices', array( '_notice_nonce' => wp_create_nonce( 'astra-notices' ), ) @@ -328,8 +328,8 @@ public function show_notices() { * @return void */ public static function markup( $notice = array() ) { - wp_enqueue_script( 'astra-notices' ); - wp_enqueue_style( 'astra-notices' ); + wp_enqueue_script( 'bsf-astra-notices' ); + wp_enqueue_style( 'bsf-astra-notices' ); // Dual-emit: legacy (astra_notice_*) + new (bsf_admin_notice_*) hooks for backward compat. // Note: consumers hooking BOTH names for the same event will be called twice. diff --git a/notices.js b/notices.js index 904338e..20f1e04 100644 --- a/notices.js +++ b/notices.js @@ -12,7 +12,7 @@ * @since 1.0.0 * @class ASTCustomizer */ - AstraNotices = { + var AstraNotices = { /** * Initializes our custom logic for the Customizer. @@ -80,7 +80,7 @@ type: 'POST', data: { action : 'astra-notice-dismiss', - nonce : astraNotices._notice_nonce, + nonce : bsfAstraNotices._notice_nonce, notice_id : notice_id, repeat_notice_after : parseInt( repeat_notice_after, 10 ), }, From 32b1bf81da7ad288d8477f95886052f0be5f316a Mon Sep 17 00:00:00 2001 From: Raj Mohan <68589327+rajmohanreddy774@users.noreply.github.com> Date: Wed, 20 May 2026 09:46:53 +0530 Subject: [PATCH 2/2] chore: bump version to 1.2.3 --- class-bsf-admin-notices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class-bsf-admin-notices.php b/class-bsf-admin-notices.php index a2e47c9..e75eff2 100644 --- a/class-bsf-admin-notices.php +++ b/class-bsf-admin-notices.php @@ -33,7 +33,7 @@ class BSF_Admin_Notices { * @var string * @since 1.2.0 */ - private static $version = '1.2.2'; + private static $version = '1.2.3'; /** * Registered notices.