diff --git src/wp-admin/my-sites.php src/wp-admin/my-sites.php
index 588afb06a0..ef945c40cc 100644
|
|
get_current_screen()->set_help_sidebar( |
55 | 55 | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
56 | 56 | |
57 | 57 | if ( $updated ) { ?> |
58 | | <div id="message" class="updated notice is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div> |
| 58 | <div class="notice notice-success is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div> |
59 | 59 | <?php } ?> |
60 | 60 | |
61 | 61 | <div class="wrap"> |
… |
… |
if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) { |
73 | 73 | } |
74 | 74 | |
75 | 75 | if ( empty( $blogs ) ) : |
76 | | echo '<p>'; |
77 | | _e( 'You must be a member of at least one site to use this page.' ); |
78 | | echo '</p>'; |
| 76 | ?> |
| 77 | <div class="notice notice-error is-dismissible"><p><strong><?php _e( 'You must be a member of at least one site to use this page.' ); ?></strong></p></div> |
| 78 | <?php |
79 | 79 | else : |
80 | 80 | ?> |
81 | 81 | |
diff --git src/wp-admin/network/settings.php src/wp-admin/network/settings.php
index a935a14647..ac90d52701 100644
|
|
if ( $_POST ) { |
138 | 138 | include( ABSPATH . 'wp-admin/admin-header.php' ); |
139 | 139 | |
140 | 140 | if ( isset( $_GET['updated'] ) ) { |
141 | | ?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ); ?></p></div> |
| 141 | ?><div class="notice notice-success is-dismissible"><p><?php _e( 'Settings saved.' ); ?></p></div> |
142 | 142 | <?php |
143 | 143 | } |
144 | 144 | ?> |
… |
… |
if ( isset( $_GET['updated'] ) ) { |
167 | 167 | $new_admin_email = get_site_option( 'new_admin_email' ); |
168 | 168 | if ( $new_admin_email && $new_admin_email != get_site_option( 'admin_email' ) ) : |
169 | 169 | ?> |
170 | | <div class="updated inline"> |
| 170 | <div class="notice notice-warning is-dismissible"> |
171 | 171 | <p> |
172 | 172 | <?php |
173 | 173 | printf( |
diff --git src/wp-admin/network/site-info.php src/wp-admin/network/site-info.php
index 83e05ae867..6cc8e37f69 100644
|
|
network_edit_site_nav( |
144 | 144 | |
145 | 145 | if ( ! empty( $messages ) ) { |
146 | 146 | foreach ( $messages as $msg ) { |
147 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>'; |
| 147 | echo '<div class="notice notice-success is-dismissible"><p>' . $msg . '</p></div>'; |
148 | 148 | } |
149 | 149 | } |
150 | 150 | ?> |
… |
… |
if ( ! empty( $messages ) ) { |
193 | 193 | <fieldset> |
194 | 194 | <legend class="screen-reader-text"><?php _e( 'Set site attributes' ); ?></legend> |
195 | 195 | <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?> |
196 | | <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" |
| 196 | <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" |
197 | 197 | <?php |
198 | 198 | checked( (bool) $details->$field_key, true ); |
199 | 199 | disabled( ! in_array( $details->$field_key, array( 0, 1 ) ) ); |
diff --git src/wp-admin/network/site-settings.php src/wp-admin/network/site-settings.php
index 488a541abc..a7d5a31705 100644
|
|
network_edit_site_nav( |
103 | 103 | |
104 | 104 | if ( ! empty( $messages ) ) { |
105 | 105 | foreach ( $messages as $msg ) { |
106 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>'; |
| 106 | echo '<div class="notice notice-success is-dismissible"><p>' . $msg . '</p></div>'; |
107 | 107 | } |
108 | 108 | } |
109 | 109 | ?> |
diff --git src/wp-admin/network/site-themes.php src/wp-admin/network/site-themes.php
index 497de2aa98..ac74bcd736 100644
|
|
if ( isset( $_GET['enabled'] ) ) { |
192 | 192 | } else { |
193 | 193 | $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled ); |
194 | 194 | } |
195 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; |
| 195 | echo '<div class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; |
196 | 196 | } elseif ( isset( $_GET['disabled'] ) ) { |
197 | 197 | $disabled = absint( $_GET['disabled'] ); |
198 | 198 | if ( 1 == $disabled ) { |
… |
… |
if ( isset( $_GET['enabled'] ) ) { |
200 | 200 | } else { |
201 | 201 | $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled ); |
202 | 202 | } |
203 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; |
| 203 | echo '<div class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; |
204 | 204 | } elseif ( isset( $_GET['error'] ) && 'none' == $_GET['error'] ) { |
205 | | echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'No theme selected.' ) . '</p></div>'; |
| 205 | echo '<div class="notice notice-error is-dismissible"><p>' . __( 'No theme selected.' ) . '</p></div>'; |
206 | 206 | } |
207 | 207 | ?> |
208 | 208 | |
diff --git src/wp-admin/network/site-users.php src/wp-admin/network/site-users.php
index 86f858ec99..2e6a726b55 100644
|
|
network_edit_site_nav( |
236 | 236 | if ( isset( $_GET['update'] ) ) : |
237 | 237 | switch ( $_GET['update'] ) { |
238 | 238 | case 'adduser': |
239 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . __( 'User added.' ) . '</p></div>'; |
| 239 | echo '<div class="notice notice-success is-dismissible"><p>' . __( 'User added.' ) . '</p></div>'; |
240 | 240 | break; |
241 | 241 | case 'err_add_member': |
242 | | echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'User is already a member of this site.' ) . '</p></div>'; |
| 242 | echo '<div class="notice notice-error is-dismissible"><p>' . __( 'User is already a member of this site.' ) . '</p></div>'; |
243 | 243 | break; |
244 | 244 | case 'err_add_fail': |
245 | | echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'User could not be added to this site.' ) . '</p></div>'; |
| 245 | echo '<div class="notice notice-error is-dismissible"><p>' . __( 'User could not be added to this site.' ) . '</p></div>'; |
246 | 246 | break; |
247 | 247 | case 'err_add_notfound': |
248 | | echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Enter the username of an existing user.' ) . '</p></div>'; |
| 248 | echo '<div class="notice notice-error is-dismissible"><p>' . __( 'Enter the username of an existing user.' ) . '</p></div>'; |
249 | 249 | break; |
250 | 250 | case 'promote': |
251 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . __( 'Changed roles.' ) . '</p></div>'; |
| 251 | echo '<div class="notice notice-success is-dismissible"><p>' . __( 'Changed roles.' ) . '</p></div>'; |
252 | 252 | break; |
253 | 253 | case 'err_promote': |
254 | | echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Select a user to change role.' ) . '</p></div>'; |
| 254 | echo '<div class="notice notice-error is-dismissible"><p>' . __( 'Select a user to change role.' ) . '</p></div>'; |
255 | 255 | break; |
256 | 256 | case 'remove': |
257 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . __( 'User removed from this site.' ) . '</p></div>'; |
| 257 | echo '<div class="notice notice-success is-dismissible"><p>' . __( 'User removed from this site.' ) . '</p></div>'; |
258 | 258 | break; |
259 | 259 | case 'err_remove': |
260 | | echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Select a user to remove.' ) . '</p></div>'; |
| 260 | echo '<div class="notice notice-error is-dismissible"><p>' . __( 'Select a user to remove.' ) . '</p></div>'; |
261 | 261 | break; |
262 | 262 | case 'newuser': |
263 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . __( 'User created.' ) . '</p></div>'; |
| 263 | echo '<div class="notice notice-success is-dismissible"><p>' . __( 'User created.' ) . '</p></div>'; |
264 | 264 | break; |
265 | 265 | case 'err_new': |
266 | | echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Enter the username and email.' ) . '</p></div>'; |
| 266 | echo '<div class="notice notice-error is-dismissible"><p>' . __( 'Enter the username and email.' ) . '</p></div>'; |
267 | 267 | break; |
268 | 268 | case 'err_new_dup': |
269 | | echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'Duplicated username or email address.' ) . '</p></div>'; |
| 269 | echo '<div class="notice notice-error is-dismissible"><p>' . __( 'Duplicated username or email address.' ) . '</p></div>'; |
270 | 270 | break; |
271 | 271 | } |
272 | 272 | endif; |
diff --git src/wp-admin/network/sites.php src/wp-admin/network/sites.php
index b5b55bded5..ab5cc6fa55 100644
|
|
if ( isset( $_GET['updated'] ) ) { |
330 | 330 | } |
331 | 331 | |
332 | 332 | if ( ! empty( $msg ) ) { |
333 | | $msg = '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>'; |
| 333 | $msg = '<div class="notice notice-success is-dismissible"><p>' . $msg . '</p></div>'; |
334 | 334 | } |
335 | 335 | } |
336 | 336 | |
diff --git src/wp-admin/network/themes.php src/wp-admin/network/themes.php
index fbfa8b46b7..757ad2f351 100644
|
|
if ( isset( $_GET['enabled'] ) ) { |
286 | 286 | } else { |
287 | 287 | $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled ); |
288 | 288 | } |
289 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; |
| 289 | echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; |
290 | 290 | } elseif ( isset( $_GET['disabled'] ) ) { |
291 | 291 | $disabled = absint( $_GET['disabled'] ); |
292 | 292 | if ( 1 == $disabled ) { |
… |
… |
if ( isset( $_GET['enabled'] ) ) { |
294 | 294 | } else { |
295 | 295 | $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled ); |
296 | 296 | } |
297 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; |
| 297 | echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; |
298 | 298 | } elseif ( isset( $_GET['deleted'] ) ) { |
299 | 299 | $deleted = absint( $_GET['deleted'] ); |
300 | 300 | if ( 1 == $deleted ) { |
… |
… |
if ( isset( $_GET['enabled'] ) ) { |
302 | 302 | } else { |
303 | 303 | $message = _n( '%s theme deleted.', '%s themes deleted.', $deleted ); |
304 | 304 | } |
305 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . sprintf( $message, number_format_i18n( $deleted ) ) . '</p></div>'; |
| 305 | echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $deleted ) ) . '</p></div>'; |
306 | 306 | } elseif ( isset( $_GET['error'] ) && 'none' == $_GET['error'] ) { |
307 | | echo '<div id="message" class="error notice is-dismissible"><p>' . __( 'No theme selected.' ) . '</p></div>'; |
| 307 | echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'No theme selected.' ) . '</p></div>'; |
308 | 308 | } elseif ( isset( $_GET['error'] ) && 'main' == $_GET['error'] ) { |
309 | | echo '<div class="error notice is-dismissible"><p>' . __( 'You cannot delete a theme while it is active on the main site.' ) . '</p></div>'; |
| 309 | echo '<div class="notice notice-error is-dismissible"><p>' . __( 'You cannot delete a theme while it is active on the main site.' ) . '</p></div>'; |
310 | 310 | } |
311 | 311 | |
312 | 312 | ?> |
diff --git src/wp-admin/network/user-new.php src/wp-admin/network/user-new.php
index 5a230e069e..5dbcf922bb 100644
|
|
require( ABSPATH . 'wp-admin/admin-header.php' ); ?> |
104 | 104 | <?php |
105 | 105 | if ( ! empty( $messages ) ) { |
106 | 106 | foreach ( $messages as $msg ) { |
107 | | echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>'; |
| 107 | echo '<div class="notice notice-success is-dismissible"><p>' . $msg . '</p></div>'; |
108 | 108 | } |
109 | 109 | } |
110 | 110 | |
111 | 111 | if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { |
112 | 112 | ?> |
113 | | <div class="error"> |
| 113 | <div class="notice notice-error is-dismissible"> |
114 | 114 | <?php |
115 | 115 | foreach ( $add_user_errors->get_error_messages() as $message ) { |
116 | 116 | echo "<p>$message</p>"; |
diff --git src/wp-admin/network/users.php src/wp-admin/network/users.php
index 3ae8f6f1b6..dc9ee898fa 100644
|
|
require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
222 | 222 | |
223 | 223 | if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) { |
224 | 224 | ?> |
225 | | <div id="message" class="updated notice is-dismissible"><p> |
| 225 | <div class="notice notice-success is-dismissible"><p> |
226 | 226 | <?php |
227 | 227 | switch ( $_REQUEST['action'] ) { |
228 | 228 | case 'delete': |