Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/18/2016 11:10:33 AM (9 years ago)
Author:
djpaul
Message:

Fix script/style enqueue path when using BP dev. repo. with release build of WP, and SCRIPT_DEBUG=false.

If you have a WordPress release build (that is, not the dev SVN with its src folder) with a BuddyPress dev build (with its src folder), and set SCRIPT_DEBUG=false, BuddyPress will try to load the minified versions of its CSS and JS assets. As these minified assets only exist in our release builds, this causes 404 errors in this particular set of circumstances.

Fixes #6920

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cssjs.php

    r10497 r10613  
    1717 */
    1818function bp_core_register_common_scripts() {
    19     $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
     19    $min = bp_core_get_minified_asset_suffix();
    2020    $url = buddypress()->plugin_url . 'bp-core/js/';
    2121
     
    6464 */
    6565function bp_core_register_common_styles() {
    66     $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
     66    $min = bp_core_get_minified_asset_suffix();
    6767    $url = buddypress()->plugin_url . 'bp-core/css/';
    6868
Note: See TracChangeset for help on using the changeset viewer.