Changeset 55418 for trunk/src/wp-admin/network/themes.php
- Timestamp:
- 02/23/2023 10:11:51 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.