[wp-trac] [WordPress Trac] #32625: About: all admin notices should be hidden
WordPress Trac
noreply at wordpress.org
Tue Jul 7 17:38:04 UTC 2015
#32625: About: all admin notices should be hidden
-----------------------------------------+------------------
Reporter: jadpm | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.3
Component: Help/About | Version: 4.1
Severity: minor | Resolution:
Keywords: has-patch reporter-feedback | Focuses: ui
-----------------------------------------+------------------
Comment (by jadpm):
Yes, `.about-wrap .notice` should produce the same effect and it would
also be much more similar to the styling we already have in common.css
where we define styling for `.wrap .notice, .wrap div.updated, .wrap
div.error` on the same place. I'm updating the patch to apply this
solution better.
It is easy to get an admin notice on the About page:
{{{
add_action( 'admin_notices', 'ek_display_admin_notices' );
function ek_display_admin_notices() {
echo '<div id="ek-admin-notice" class="notice notice-warning">';
echo 'Whatever';
echo "</div>";
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32625#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list