Skip to content

Commit 1e11c3f

Browse files
committed
Administration: Use wp_admin_notice() in wp-admin/network/.
Add additional usage of `wp_admin_notice()` in `wp-admin/network/` where previously overlooked. Follow up to [56408], [56409], [56410], [56518], [56570], [56571], [56572], [56573], [56576], [56589], [56590], [56597], [56599], [56600]. Props costdev, joedolson. See #57791. git-svn-id: https://develop.svn.wordpress.org/trunk@56601 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f058bd1 commit 1e11c3f

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

src/wp-admin/network/themes.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,25 @@
135135
<div class="wrap">
136136
<?php if ( 1 === $themes_to_delete ) : ?>
137137
<h1><?php _e( 'Delete Theme' ); ?></h1>
138-
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This theme may be active on other sites in the network.' ); ?></p></div>
138+
<?php
139+
wp_admin_notice(
140+
'<strong>' . __( 'Caution:' ) . '</strong> ' . __( 'This theme may be active on other sites in the network.' ),
141+
array(
142+
'additional_classes' => array( 'error' ),
143+
)
144+
);
145+
?>
139146
<p><?php _e( 'You are about to remove the following theme:' ); ?></p>
140147
<?php else : ?>
141148
<h1><?php _e( 'Delete Themes' ); ?></h1>
142-
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These themes may be active on other sites in the network.' ); ?></p></div>
149+
<?php
150+
wp_admin_notice(
151+
'<strong>' . __( 'Caution:' ) . '</strong> ' . __( 'These themes may be active on other sites in the network.' ),
152+
array(
153+
'additional_classes' => array( 'error' ),
154+
)
155+
);
156+
?>
143157
<p><?php _e( 'You are about to remove the following themes:' ); ?></p>
144158
<?php endif; ?>
145159
<ul class="ul-disc">

0 commit comments

Comments
 (0)