Skip to content

Commit 2ff42bc

Browse files
committed
Networks and Sites: Fix incorrect color for Theme enabling admin notices.
This changeset replaces a `notice-updated` class with `notice-success` to fix an issue where the notices were using a gray border color instead of green when enabling or disabling a theme for a network. Follow-up to [55418]. Props ocean90, audrasjb, marineevain, SergeyBiryukov, dhrumilk, chiragrathod103. Fixes #58096. git-svn-id: https://develop.svn.wordpress.org/trunk@55637 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9dec7ae commit 2ff42bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-admin/network/themes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
/* translators: %s: Number of themes. */
376376
$message = _n( '%s theme enabled.', '%s themes enabled.', $enabled );
377377
}
378-
echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';
378+
echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';
379379
} elseif ( isset( $_GET['disabled'] ) ) {
380380
$disabled = absint( $_GET['disabled'] );
381381
if ( 1 === $disabled ) {
@@ -384,7 +384,7 @@
384384
/* translators: %s: Number of themes. */
385385
$message = _n( '%s theme disabled.', '%s themes disabled.', $disabled );
386386
}
387-
echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';
387+
echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';
388388
} elseif ( isset( $_GET['deleted'] ) ) {
389389
$deleted = absint( $_GET['deleted'] );
390390
if ( 1 === $deleted ) {

0 commit comments

Comments
 (0)