• Resolved raoulunger

    (@raoulunger)


    Hi,

    After changes to a file are saved, a notification appears in the upper part saying that the code was updated. Normally, when someone starts making changes, but before saving them, this notification disappears. This makes sense, and is a good indication that the changes are not ‘active’ yet, and that we need to save.
    However, I noticed that lately (after an update perhaps?) the notification does not disappear any longer when we started making changes – which means that we think the code has been saved. This leads to confusion when testing new code.

    Cheers!

    • This topic was modified 1 month, 2 weeks ago by raoulunger.
Viewing 1 replies (of 1 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello,

    you’re right, the notification doesn’t disappear after making a change to the code.

    The Simple Custom CSS & JS plugin uses the WordPress APIs for building the code editor, saving the custom code or showing the notification.

    The WordPress APIs are the same as used on the “WP Admin -> Posts -> Add Post” or the “WP Admin -> Pages -> Add Page”. There the “Page updated” notification also doesn’t disappear after modifying the page content (use the Classic Editor plugin to see the “Page updated” notification). In the Gutenberg editor the “Page updated” notification does disappear by itself, but only after 10 seconds, regardless if the content was modified or not.

    This behavior is consistent also with older versions of Simple Custom CSS & JS plugin (tested with v3.30 from 5 years ago), or with older versions or WordPress (tested with v6.0 and v5.7, from 3 years and, respectively, 4 years ago). So it is not a recently introduced bug.

    Your suggestion is intuitive, but it was never the normal behavior for notifications after saving a custom code, a post, or a page.

    You might try opening a ticket with the WordPress Core. Then, this behavior would be used on all the pages, posts or custom posts and it would be consistent across WordPress.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.