Make WordPress Core

Changeset 55638


Ignore:
Timestamp:
04/08/2023 09:38:00 AM (20 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.
Merges [55584] to the 6.2 branch.
Fixes #58096.

Location:
branches/6.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.2

  • branches/6.2/src/wp-admin/network/themes.php

    r55418 r55638  
    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.