Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/24/2014 11:48:48 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Replace BP_PLUGIN_DIR and BP_PLUGIN_URL constant usages with plugin_dir and plugin_url BuddyPress variables, respectively. Also replaces $bp global touches with buddypress() calls within the above scopes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-buddybar.php

    r7434 r7756  
    700700    $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    701701
    702     if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) // Backwards compatibility
     702    if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) { // Backwards compatibility
    703703        $stylesheet = get_stylesheet_directory_uri() . '/_inc/css/adminbar.css';
    704     else
    705         $stylesheet = BP_PLUGIN_URL . "bp-core/css/buddybar{$min}.css";
     704    } else {
     705        $stylesheet = buddypress()->plugin_url . "bp-core/css/buddybar{$min}.css";
     706    }
    706707
    707708    wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_buddybar_rtl_css', $stylesheet ), array(), bp_get_version() );
Note: See TracChangeset for help on using the changeset viewer.