Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/22/2010 08:45:14 PM (15 years ago)
Author:
djpaul
Message:

Minify core js/css. Set SCRIPT_DEBUG to load the dev versions. Fixes #1891

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-upgrade.php

    r3464 r3477  
    12761276
    12771277function bp_core_add_admin_menu_styles() {
    1278     wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( $path = '/buddypress' ) . '/bp-core/css/admin.css' ) );
     1278    if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
     1279        wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( $path = '/buddypress' ) . '/bp-core/css/admin.dev.css' ) );
     1280    else
     1281        wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( $path = '/buddypress' ) . '/bp-core/css/admin.css' ) );
     1282
    12791283    wp_enqueue_script( 'thickbox' );
    12801284    wp_enqueue_style( 'thickbox' );
Note: See TracChangeset for help on using the changeset viewer.