Skip to:
Content

BuddyPress.org

Changeset 5200


Ignore:
Timestamp:
09/30/2011 08:19:14 PM (13 years ago)
Author:
boonebgorges
Message:

Don't enqueue members or groups widget JS on the Dashboard or Network Admin. Fixes #3613

Location:
branches/1.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-core/bp-core-widgets.php

    r4820 r5200  
    2323        parent::__construct( false, $name = __( 'Members', 'buddypress' ), $widget_ops );
    2424
    25         if ( is_active_widget( false, false, $this->id_base ) ) {
     25        if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin() ) {
    2626            if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
    2727                wp_enqueue_script( 'bp_core_widget_members-js', BP_PLUGIN_URL . '/bp-core/js/widget-members.dev.js', array( 'jquery' ), '20110723' );
  • branches/1.5/bp-groups/bp-groups-widgets.php

    r4961 r5200  
    2020        parent::__construct( false, __( 'Groups', 'buddypress' ), $widget_ops );
    2121
    22         if ( is_active_widget( false, false, $this->id_base ) ) {
     22        if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin() ) {
    2323            if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
    2424                wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . '/bp-groups/js/widget-groups.dev.js', array( 'jquery' ) );
Note: See TracChangeset for help on using the changeset viewer.