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-includes/user.php

    r61637 r61644  
    21852185 *                                        shortcuts for the user. Accepts 'true' or 'false'
    21862186 *                                        as a string literal, not boolean. Default 'false'.
    2187  *     @type string $admin_color          Admin color scheme for the user. Default 'fresh'.
     2187 *     @type string $admin_color          Admin color scheme for the user. Default 'modern'.
    21882188 *     @type bool   $use_ssl              Whether the user should always access the admin over
    21892189 *                                        https. Default false.
     
    24582458    $meta['comment_shortcuts'] = empty( $userdata['comment_shortcuts'] ) || 'false' === $userdata['comment_shortcuts'] ? 'false' : 'true';
    24592459
    2460     $admin_color         = empty( $userdata['admin_color'] ) ? 'fresh' : $userdata['admin_color'];
     2460    $admin_color         = empty( $userdata['admin_color'] ) ? 'modern' : $userdata['admin_color'];
    24612461    $meta['admin_color'] = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $admin_color );
    24622462
     
    25472547     *     @type string   $syntax_highlighting  Whether to enable the rich code editor for the user. Default 'true'.
    25482548     *     @type string   $comment_shortcuts    Whether to enable keyboard shortcuts for the user. Default 'false'.
    2549      *     @type string   $admin_color          The color scheme for a user's admin screen. Default 'fresh'.
     2549     *     @type string   $admin_color          The color scheme for a user's admin screen. Default 'modern'.
    25502550     *     @type int|bool $use_ssl              Whether to force SSL on the user's admin area. 0|false if SSL
    25512551     *                                          is not forced.
Note: See TracChangeset for help on using the changeset viewer.