Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #48333, comment 12


Ignore:
Timestamp:
01/31/2020 05:41:27 PM (4 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48333, comment 12

    initial v1  
    22
    33It will need some "global" js running on all wp-admin pages that will check for stored messages, and if there are any display them and remove them from the sessionStorage. Would probably need to make sure the messages are "plain text" (no HTML tags allowed), then "wrap" them in the standard `<div class="notice is-dismissible ...">` that has a "Close" button.
     4
     5May also need some way to make sure any messages actually come from WP. It would be possible to set sessionStorage from a "third-party" site before navigating to wp-admin. Needs some way to check for that, perhaps a nonce.