Make WordPress Core

Changeset 55637


Ignore:
Timestamp:
04/08/2023 09:29:28 AM (14 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/themes.php

    r55418 r55637  
    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'] );
     
    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'] );
Note: See TracChangeset for help on using the changeset viewer.