Skip to:
Content

bbPress.org

Changeset 5227


Ignore:
Timestamp:
12/12/2013 09:39:16 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Force colors-fresh dependency to act as a foundation for Mint and Evergreen color schemes. Fixes #2462.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/admin.php

    r5226 r5227  
    646646            array( 'base' => '#f1f3f2', 'focus' => '#fff', 'current' => '#fff' )
    647647        );
     648
     649        // Bail if already using the fresh color scheme
     650        if ( 'fresh' === get_user_option( 'admin_color' ) ) {
     651            return;
     652        }
     653
     654        // Force 'colors-fresh' dependency
     655        global $wp_styles;
     656        $wp_styles->registered[ 'colors' ]->deps[] = 'colors-fresh';
    648657    }
    649658
Note: See TracChangeset for help on using the changeset viewer.