mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-09-05 16:40:22 +00:00
Administration: Use wp_admin_notice() for .updated.
Add usages of `wp_admin_notice()` and `wp_get_admin_notice()` on `.updated` in the root level of `/wp-admin/`. Ongoing task to implement new function across core. Props costdev, joedolson. See #57791. git-svn-id: https://develop.svn.wordpress.org/trunk@56573 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -469,9 +469,13 @@ foreach ( $bulk_counts as $message => $count ) {
|
||||
}
|
||||
|
||||
if ( $messages ) {
|
||||
printf(
|
||||
'<div id="message" class="updated notice is-dismissible"><p>%s</p></div>',
|
||||
implode( ' ', $messages )
|
||||
wp_admin_notice(
|
||||
implode( ' ', $messages ),
|
||||
array(
|
||||
'id' => 'message',
|
||||
'additional_classes' => array( 'updated' ),
|
||||
'dismissible' => true,
|
||||
)
|
||||
);
|
||||
}
|
||||
unset( $messages );
|
||||
|
||||
Reference in New Issue
Block a user