Hi Tmeister!
I am having the issue, that the welcome message reappears at the top of the plugins page every time after the x is clicked and the page is loaded again.
Plugin version: 1.5.0
WordPress version 6.9.4
WooCommerce version 10.7.0
PHP 8.3.31
Possible reason: enqueue_notice_dismissal_script() uses wp_add_inline_script('wp-util', $script), but wp-util is not guaranteed to be loaded on all admin pages. When it's not loaded, the dismiss button only hides the notice visually (standard WP behavior) without calling the REST API, causing the notice to reappear on every page load. Fix: either call wp_enqueue_script('wp-util') before adding the inline script, or attach to jquery instead.
Hi Tmeister!
I am having the issue, that the welcome message reappears at the top of the plugins page every time after the x is clicked and the page is loaded again.
Plugin version: 1.5.0
WordPress version 6.9.4
WooCommerce version 10.7.0
PHP 8.3.31
Possible reason: enqueue_notice_dismissal_script() uses wp_add_inline_script('wp-util', $script), but wp-util is not guaranteed to be loaded on all admin pages. When it's not loaded, the dismiss button only hides the notice visually (standard WP behavior) without calling the REST API, causing the notice to reappear on every page load. Fix: either call wp_enqueue_script('wp-util') before adding the inline script, or attach to jquery instead.