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/customize.php

    r61440 r61644  
    149149$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
    150150$admin_color = get_user_option( 'admin_color' );
    151 $body_class .= ' admin-color-' . sanitize_html_class( is_string( $admin_color ) ? $admin_color : '', 'fresh' );
     151$body_class .= ' admin-color-' . sanitize_html_class( is_string( $admin_color ) ? $admin_color : '', 'modern' );
    152152
    153153if ( wp_use_widgets_block_editor() ) {
Note: See TracChangeset for help on using the changeset viewer.