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.

Built from https://develop.svn.wordpress.org/trunk@55637


git-svn-id: http://core.svn.wordpress.org/trunk@55149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-04-08 09:31:18 +00:00
parent 6b72fd183f
commit 2193d75aa1
2 changed files with 3 additions and 3 deletions

View File

@ -375,7 +375,7 @@ if ( isset( $_GET['enabled'] ) ) {
/* translators: %s: Number of themes. */ /* translators: %s: Number of themes. */
$message = _n( '%s theme enabled.', '%s themes enabled.', $enabled ); $message = _n( '%s theme enabled.', '%s themes enabled.', $enabled );
} }
echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>'; echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $enabled ) ) . '</p></div>';
} elseif ( isset( $_GET['disabled'] ) ) { } elseif ( isset( $_GET['disabled'] ) ) {
$disabled = absint( $_GET['disabled'] ); $disabled = absint( $_GET['disabled'] );
if ( 1 === $disabled ) { if ( 1 === $disabled ) {
@ -384,7 +384,7 @@ if ( isset( $_GET['enabled'] ) ) {
/* translators: %s: Number of themes. */ /* translators: %s: Number of themes. */
$message = _n( '%s theme disabled.', '%s themes disabled.', $disabled ); $message = _n( '%s theme disabled.', '%s themes disabled.', $disabled );
} }
echo '<div id="message" class="notice notice-updated is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>'; echo '<div id="message" class="notice notice-success is-dismissible"><p>' . sprintf( $message, number_format_i18n( $disabled ) ) . '</p></div>';
} elseif ( isset( $_GET['deleted'] ) ) { } elseif ( isset( $_GET['deleted'] ) ) {
$deleted = absint( $_GET['deleted'] ); $deleted = absint( $_GET['deleted'] );
if ( 1 === $deleted ) { if ( 1 === $deleted ) {

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.3-alpha-55633'; $wp_version = '6.3-alpha-55637';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.