Skip to content

Welcome notice reappears on every page load after dismissal #327

@tissi-2

Description

@tissi-2

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.

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions