Changeset 55418
- Timestamp:
- 02/23/2023 10:11:51 PM (20 months ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/my-sites.php
r55412 r55418 57 57 58 58 if ( $updated ) { ?> 59 <div id="message" class=" updated noticeis-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>59 <div id="message" class="notice notice-success is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div> 60 60 <?php } ?> 61 61 … … 75 75 76 76 if ( empty( $blogs ) ) : 77 echo '<p>';78 _e( 'You must be a member of at least one site to use this page.' );79 echo '</p>';77 ?> 78 <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> 79 <?php 80 80 else : 81 81 ?> -
trunk/src/wp-admin/network/settings.php
r55412 r55418 139 139 140 140 if ( isset( $_GET['updated'] ) ) { 141 ?><div id="message" class=" updated noticeis-dismissible"><p><?php _e( 'Settings saved.' ); ?></p></div>141 ?><div id="message" class="notice notice-success is-dismissible"><p><?php _e( 'Settings saved.' ); ?></p></div> 142 142 <?php 143 143 } … … 168 168 if ( $new_admin_email && get_site_option( 'admin_email' ) !== $new_admin_email ) : 169 169 ?> 170 <div class=" updatedinline">170 <div class="notice notice-warning is-dismissible inline"> 171 171 <p> 172 172 <?php -
trunk/src/wp-admin/network/site-info.php
r55276 r55418 148 148 if ( ! empty( $messages ) ) { 149 149 foreach ( $messages as $msg ) { 150 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . $msg . '</p></div>';150 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . $msg . '</p></div>'; 151 151 } 152 152 } -
trunk/src/wp-admin/network/site-new.php
r55415 r55418 190 190 if ( ! empty( $messages ) ) { 191 191 foreach ( $messages as $msg ) { 192 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . $msg . '</p></div>';192 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . $msg . '</p></div>'; 193 193 } 194 194 } -
trunk/src/wp-admin/network/site-settings.php
r55408 r55418 106 106 if ( ! empty( $messages ) ) { 107 107 foreach ( $messages as $msg ) { 108 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . $msg . '</p></div>';108 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . $msg . '</p></div>'; 109 109 } 110 110 } -
trunk/src/wp-admin/network/site-themes.php
r51475 r55418 196 196 $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled ); 197 197 } 198 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';198 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; 199 199 } elseif ( isset( $_GET['disabled'] ) ) { 200 200 $disabled = absint( $_GET['disabled'] ); … … 205 205 $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled ); 206 206 } 207 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';207 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; 208 208 } elseif ( isset( $_GET['error'] ) && 'none' === $_GET['error'] ) { 209 echo '<div id="message" class=" error noticeis-dismissible"><p>' . __( 'No theme selected.' ) . '</p></div>';209 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'No theme selected.' ) . '</p></div>'; 210 210 } 211 211 ?> -
trunk/src/wp-admin/network/site-users.php
r51475 r55418 236 236 switch ( $_GET['update'] ) { 237 237 case 'adduser': 238 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . __( 'User added.' ) . '</p></div>';238 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . __( 'User added.' ) . '</p></div>'; 239 239 break; 240 240 case 'err_add_member': 241 echo '<div id="message" class=" error noticeis-dismissible"><p>' . __( 'User is already a member of this site.' ) . '</p></div>';241 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'User is already a member of this site.' ) . '</p></div>'; 242 242 break; 243 243 case 'err_add_fail': 244 echo '<div id="message" class=" error noticeis-dismissible"><p>' . __( 'User could not be added to this site.' ) . '</p></div>';244 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'User could not be added to this site.' ) . '</p></div>'; 245 245 break; 246 246 case 'err_add_notfound': 247 echo '<div id="message" class=" error noticeis-dismissible"><p>' . __( 'Enter the username of an existing user.' ) . '</p></div>';247 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'Enter the username of an existing user.' ) . '</p></div>'; 248 248 break; 249 249 case 'promote': 250 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . __( 'Changed roles.' ) . '</p></div>';250 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . __( 'Changed roles.' ) . '</p></div>'; 251 251 break; 252 252 case 'err_promote': 253 echo '<div id="message" class=" error noticeis-dismissible"><p>' . __( 'Select a user to change role.' ) . '</p></div>';253 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'Select a user to change role.' ) . '</p></div>'; 254 254 break; 255 255 case 'remove': 256 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . __( 'User removed from this site.' ) . '</p></div>';256 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . __( 'User removed from this site.' ) . '</p></div>'; 257 257 break; 258 258 case 'err_remove': 259 echo '<div id="message" class=" error noticeis-dismissible"><p>' . __( 'Select a user to remove.' ) . '</p></div>';259 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'Select a user to remove.' ) . '</p></div>'; 260 260 break; 261 261 case 'newuser': 262 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . __( 'User created.' ) . '</p></div>';262 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . __( 'User created.' ) . '</p></div>'; 263 263 break; 264 264 case 'err_new': 265 echo '<div id="message" class=" error noticeis-dismissible"><p>' . __( 'Enter the username and email.' ) . '</p></div>';265 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'Enter the username and email.' ) . '</p></div>'; 266 266 break; 267 267 case 'err_new_dup': 268 echo '<div id="message" class=" error noticeis-dismissible"><p>' . __( 'Duplicated username or email address.' ) . '</p></div>';268 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'Duplicated username or email address.' ) . '</p></div>'; 269 269 break; 270 270 } -
trunk/src/wp-admin/network/sites.php
r55415 r55418 355 355 356 356 if ( ! empty( $msg ) ) { 357 $msg = '<div id="message" class=" updated noticeis-dismissible"><p>' . $msg . '</p></div>';357 $msg = '<div id="message" class="notice notice-success is-dismissible"><p>' . $msg . '</p></div>'; 358 358 } 359 359 } -
trunk/src/wp-admin/network/themes.php
r55412 r55418 376 376 $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled ); 377 377 } 378 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';378 echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; 379 379 } elseif ( isset( $_GET['disabled'] ) ) { 380 380 $disabled = absint( $_GET['disabled'] ); … … 385 385 $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled ); 386 386 } 387 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';387 echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; 388 388 } elseif ( isset( $_GET['deleted'] ) ) { 389 389 $deleted = absint( $_GET['deleted'] ); … … 394 394 $message = _n( '%s theme deleted.', '%s themes deleted.', $deleted ); 395 395 } 396 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . sprintf( $message, number_format_i18n( $deleted ) ) . '</p></div>';396 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $deleted ) ) . '</p></div>'; 397 397 } elseif ( isset( $_GET['enabled-auto-update'] ) ) { 398 398 $enabled = absint( $_GET['enabled-auto-update'] ); … … 403 403 $message = _n( '%s theme will be auto-updated.', '%s themes will be auto-updated.', $enabled ); 404 404 } 405 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';405 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; 406 406 } elseif ( isset( $_GET['disabled-auto-update'] ) ) { 407 407 $disabled = absint( $_GET['disabled-auto-update'] ); … … 412 412 $message = _n( '%s theme will no longer be auto-updated.', '%s themes will no longer be auto-updated.', $disabled ); 413 413 } 414 echo '<div id="message" class=" updated noticeis-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';414 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; 415 415 } elseif ( isset( $_GET['error'] ) && 'none' === $_GET['error'] ) { 416 echo '<div id="message" class=" error noticeis-dismissible"><p>' . __( 'No theme selected.' ) . '</p></div>';416 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'No theme selected.' ) . '</p></div>'; 417 417 } elseif ( isset( $_GET['error'] ) && 'main' === $_GET['error'] ) { 418 echo '<div class="error noticeis-dismissible"><p>' . __( 'You cannot delete a theme while it is active on the main site.' ) . '</p></div>';418 echo '<div id="message" class="notice notice-error is-dismissible"><p>' . __( 'You cannot delete a theme while it is active on the main site.' ) . '</p></div>'; 419 419 } 420 420 -
trunk/src/wp-admin/network/user-new.php
r55415 r55418 78 78 } 79 79 80 $message = ''; 80 81 if ( isset( $_GET['update'] ) ) { 81 $messages = array();82 82 if ( 'added' === $_GET['update'] ) { 83 83 $edit_link = ''; … … 94 94 $message .= sprintf( ' <a href="%s">%s</a>', $edit_link, __( 'Edit user' ) ); 95 95 } 96 97 $messages[] = $message;98 96 } 99 97 } … … 108 106 <h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1> 109 107 <?php 110 if ( ! empty( $messages ) ) { 111 foreach ( $messages as $msg ) { 112 echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>'; 113 } 108 if ( '' !== $message ) { 109 echo '<div id="message" class="notice notice-success is-dismissible"><p>' . $message . '</p></div>'; 114 110 } 115 111 116 112 if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { 117 113 ?> 118 <div class="error">114 <div id="message" class="notice notice-error is-dismissible"> 119 115 <?php 120 foreach ( $add_user_errors->get_error_messages() as $ message) {121 echo "<p>$ message</p>";116 foreach ( $add_user_errors->get_error_messages() as $error ) { 117 echo "<p>$error</p>"; 122 118 } 123 119 ?> -
trunk/src/wp-admin/network/users.php
r55415 r55418 256 256 if ( isset( $_REQUEST['updated'] ) && 'true' == $_REQUEST['updated'] && ! empty( $_REQUEST['action'] ) ) { 257 257 ?> 258 <div id="message" class=" updated noticeis-dismissible"><p>258 <div id="message" class="notice notice-success is-dismissible"><p> 259 259 <?php 260 260 switch ( $_REQUEST['action'] ) {
Note: See TracChangeset
for help on using the changeset viewer.