|
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 notice is-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 notice is-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 notice is-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 notice is-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 notice is-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 notice is-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 notice is-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 | ?> |
|
0 commit comments