[wp-trac] [WordPress Trac] #48333: Show success notice when the admin verification screen is "snoozed"

WordPress Trac noreply at wordpress.org
Fri Jan 31 17:36:35 UTC 2020


#48333: Show success notice when the admin verification screen is "snoozed"
--------------------------+---------------------------------
 Reporter:  desrosj       |       Owner:  whyisjake
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  5.4
Component:  Site Health   |     Version:  5.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui, administration
--------------------------+---------------------------------

Comment (by azaozz):

 Yet another way (as discussed in Slack) would be to use `sessionStorage`
 in the browser and store the message text. See
 https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage.

 It 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48333#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list