Skip to:
Content

bbPress.org

Changeset 5903


Ignore:
Timestamp:
08/10/2015 02:00:57 PM (6 years ago)
Author:
johnjamesjacoby
Message:

Admin: Do not register color schemes when running from source.

This changeset prevents the color picker UI from appearing (and not working) when running WordPress from it's /src directory.

See #2847.

File:
1 edited

Legend:

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

    r5885 r5903  
    633633     * @uses wp_admin_css_color() To register the color scheme
    634634     */
    635     public function register_admin_style () {
     635    public function register_admin_style() {
     636
     637        // Color schemes are not available when running out of src
     638        if ( false !== strpos( $GLOBALS['wp_version'], '-src' ) ) {
     639            return;
     640        }
    636641
    637642        // RTL and/or minified
Note: See TracChangeset for help on using the changeset viewer.