Ticket #39213: 39213.7.diff
File 39213.7.diff, 14.3 KB (added by , 22 months ago) |
---|
-
src/wp-admin/my-sites.php
56 56 require_once ABSPATH . 'wp-admin/admin-header.php'; 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 62 62 <div class="wrap"> … … 74 74 } 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 ?> 82 82 -
src/wp-admin/network/settings.php
138 138 require_once ABSPATH . 'wp-admin/admin-header.php'; 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 } 144 144 ?> … … 167 167 $new_admin_email = get_site_option( 'new_admin_email' ); 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 173 173 printf( -
src/wp-admin/network/site-info.php
147 147 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 } 153 153 ?> -
src/wp-admin/network/site-new.php
189 189 <?php 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 } 195 195 ?> -
src/wp-admin/network/site-settings.php
105 105 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 } 111 111 ?> -
src/wp-admin/network/site-themes.php
195 195 /* translators: %s: Number of themes. */ 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'] ); 201 201 if ( 1 === $disabled ) { … … 204 204 /* translators: %s: Number of themes. */ 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 ?> 212 212 -
src/wp-admin/network/site-users.php
235 235 if ( isset( $_GET['update'] ) ) : 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 } 271 271 endif; -
src/wp-admin/network/sites.php
354 354 } 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 } 360 360 -
src/wp-admin/network/themes.php
375 375 /* translators: %s: Number of themes. */ 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'] ); 381 381 if ( 1 === $disabled ) { … … 384 384 /* translators: %s: Number of themes. */ 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'] ); 390 390 if ( 1 === $deleted ) { … … 393 393 /* translators: %s: Number of themes. */ 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'] ); 399 399 if ( 1 === $enabled ) { … … 402 402 /* translators: %s: Number of themes. */ 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'] ); 408 408 if ( 1 === $disabled ) { … … 411 411 /* translators: %s: Number of themes. */ 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 421 421 ?> -
src/wp-admin/network/user-new.php
77 77 } 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 = ''; 84 84 if ( isset( $_GET['user_id'] ) ) { … … 93 93 if ( $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 } 100 98 … … 107 105 <div class="wrap"> 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 ?> 124 120 </div> -
src/wp-admin/network/users.php
255 255 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'] ) { 261 261 case 'delete':