Skip to:
Content

BuddyPress.org

Changeset 6323


Ignore:
Timestamp:
09/11/2012 04:58:24 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

  • Hardcode a bp-default check into bp-legacy functions to prevent duplicate loading of global.js.
  • See #4510.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-legacy/buddypress-functions.php

    r6284 r6323  
    4646     */
    4747    public function __construct() {
     48
     49        // Bail if parent/child themes are bp-default
     50        if ( in_array( 'bp-default', array( get_template(), get_stylesheet() ) ) )
     51            return;
     52
    4853        $this->setup_globals();
    4954        $this->setup_actions();
Note: See TracChangeset for help on using the changeset viewer.