mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Admin notices: Make (most) core notices dismissible.
These no longer return upon refreshing the page when JS is on and working, so users should be able to dismiss them. This is particularly important on the post edit screen when DFW is triggered, but pretty much all notices can be dismissed if needed. A post on Make/Core will follow with information on how this can be leveraged in plugins. props valendesigns, afercia, paulwilde, adamsilverstein, helen. fixes #31233. see #23367. git-svn-id: https://develop.svn.wordpress.org/trunk@31973 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -186,7 +186,7 @@ include(ABSPATH . 'wp-admin/admin-header.php');
|
||||
<div class="updated"><p><strong><?php _e('Important:'); ?></strong> <?php _e('This user has super admin privileges.'); ?></p></div>
|
||||
<?php } ?>
|
||||
<?php if ( isset($_GET['updated']) ) : ?>
|
||||
<div id="message" class="updated">
|
||||
<div id="message" class="updated notice is-dismissible">
|
||||
<?php if ( IS_PROFILE_PAGE ) : ?>
|
||||
<p><strong><?php _e('Profile updated.') ?></strong></p>
|
||||
<?php else: ?>
|
||||
|
||||
Reference in New Issue
Block a user