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:
Joe Dolson
2023-09-14 02:13:42 +00:00
parent 795534f909
commit f43aaaf741
13 changed files with 429 additions and 181 deletions
+7 -3
View File
@@ -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 );