Administration: Increase wp_admin_notice() usage in /wp-includes/.
Adds further usages of `wp_admin_notice()` in the root level of `/wp-includes/` on `.error` and `.notice-info`. Ongoing task to implement new function across core. Follow-up to [56408], [56409], [56410], [56518], [56570], [56571], [56572], [56573], [56576], [56589], [56590]. Props joedolson, costdev. See #57791. Built from https://develop.svn.wordpress.org/trunk@56597 git-svn-id: http://core.svn.wordpress.org/trunk@56109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -375,7 +375,13 @@ function wp_print_media_templates() {
|
||||
<div class="attachment-media-view {{ data.orientation }}">
|
||||
<?php
|
||||
if ( isset( $_GET['error'] ) && 'deprecated' === $_GET['error'] ) {
|
||||
echo '<div id="message" class="error notice"><p>' . __( 'The Edit Media screen is deprecated as of WordPress 6.3. Please use the Media Library instead.' ) . '</p></div>';
|
||||
wp_admin_notice(
|
||||
__( 'The Edit Media screen is deprecated as of WordPress 6.3. Please use the Media Library instead.' ),
|
||||
array(
|
||||
'id' => 'message',
|
||||
'additional_classes' => array( 'error' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
?>
|
||||
<h2 class="screen-reader-text"><?php /* translators: Hidden accessibility text. */ _e( 'Attachment Preview' ); ?></h2>
|
||||
|
||||
Reference in New Issue
Block a user