Make WordPress Core


Ignore:
Timestamp:
02/15/2026 08:01:50 AM (6 weeks ago)
Author:
fabiankaegy
Message:

Admin: Change the default admin color scheme to Modern.

Rename the 'Modern' color scheme to 'Default' and the previous 'Default' scheme to 'Fresh'. Update all fallback references from 'fresh' to 'modern' across admin headers, the Customizer, the color scheme picker, the script loader, and user functions.

Add an upgrade routine in upgrade_700() to migrate existing users with the 'fresh' admin color to 'modern'.

Props fabiankaegy, audrasjb, mukesh27, westonruter, peterwilsoncc, jorbin, sabernhardt, joedolson, phpbits.
Fixes #64546.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r61594 r61644  
    10051005    ksort( $_wp_admin_css_colors );
    10061006
    1007     if ( isset( $_wp_admin_css_colors['fresh'] ) ) {
    1008         // Set Default ('fresh') and Light should go first.
     1007    if ( isset( $_wp_admin_css_colors['modern'] ) ) {
     1008        // Set Modern (new default), Classic ('fresh'), and Light first.
    10091009        $_wp_admin_css_colors = array_filter(
    10101010            array_merge(
    10111011                array(
     1012                    'modern' => '',
    10121013                    'fresh'  => '',
    10131014                    'light'  => '',
    1014                     'modern' => '',
    10151015                ),
    10161016                $_wp_admin_css_colors
     
    10221022
    10231023    if ( empty( $current_color ) || ! isset( $_wp_admin_css_colors[ $current_color ] ) ) {
    1024         $current_color = 'fresh';
     1024        $current_color = 'modern';
    10251025    }
    10261026    ?>
     
    10681068    // It's possible to have a color scheme set that is no longer registered.
    10691069    if ( empty( $_wp_admin_css_colors[ $color_scheme ] ) ) {
    1070         $color_scheme = 'fresh';
     1070        $color_scheme = 'modern';
    10711071    }
    10721072
    10731073    if ( ! empty( $_wp_admin_css_colors[ $color_scheme ]->icon_colors ) ) {
    10741074        $icon_colors = $_wp_admin_css_colors[ $color_scheme ]->icon_colors;
    1075     } elseif ( ! empty( $_wp_admin_css_colors['fresh']->icon_colors ) ) {
    1076         $icon_colors = $_wp_admin_css_colors['fresh']->icon_colors;
     1075    } elseif ( ! empty( $_wp_admin_css_colors['modern']->icon_colors ) ) {
     1076        $icon_colors = $_wp_admin_css_colors['modern']->icon_colors;
    10771077    } else {
    10781078        // Fall back to the default set of icon colors if the default scheme is missing.
Note: See TracChangeset for help on using the changeset viewer.