From c0ca10a9c0c3fbfd5af51745597e30cbb36a6884 Mon Sep 17 00:00:00 2001 From: abuyoyo Date: Fri, 11 Aug 2023 22:27:24 +0300 Subject: [PATCH] Fix - do not collect .theme-info notice --- js/notice_manager_panel.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/notice_manager_panel.js b/js/notice_manager_panel.js index d2eee9d..a9cd0ab 100644 --- a/js/notice_manager_panel.js +++ b/js/notice_manager_panel.js @@ -22,6 +22,12 @@ var NoticeManager = (function ($, document) { let selectors_all = selectors_notice.concat(selectors_warning, selectors_error) + let selectors_skip = [ + ".inline", + ".below-h2", + ".theme-info .notice", + ] + // wait function used with autoCollapse let wait = function (ms) { var dfd = $.Deferred() @@ -89,7 +95,7 @@ var NoticeManager = (function ($, document) { // get all notices that are not explicitly marked as `.inline` or `.below-h2` // we add .update-nag.inline for WordPress Update notice notices = $( selectors_all.join(', ') ) - .not(".inline, .below-h2") + .not(selectors_skip.join(', ')) .add("div.update-nag") /**