Make WordPress Core


Ignore:
Timestamp:
04/01/2015 10:05:17 PM (10 years ago)
Author:
helen
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugin-editor.php

    r31908 r31973  
    165165    ?>
    166166<?php if (isset($_GET['a'])) : ?>
    167  <div id="message" class="updated"><p><?php _e('File edited successfully.') ?></p></div>
     167 <div id="message" class="updated notice is-dismissible"><p><?php _e('File edited successfully.') ?></p></div>
    168168<?php elseif (isset($_GET['phperror'])) : ?>
    169169 <div id="message" class="updated"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p>
Note: See TracChangeset for help on using the changeset viewer.