- Timestamp:
- 05/19/2016 09:21:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-core-members-widget.php
r10711 r10793 31 31 // Call WP_Widget constructor. 32 32 parent::__construct( false, $name, array( 33 'description' => $description, 34 'classname' => 'widget_bp_core_members_widget buddypress widget', 33 'description' => $description, 34 'classname' => 'widget_bp_core_members_widget buddypress widget', 35 'customize_selective_refresh' => true, 35 36 ) ); 36 37 37 38 // Maybe enqueue JS for widget. 38 if ( is_ active_widget( false, false, $this->id_base ) && ! is_admin() && ! is_network_admin() ) {39 if ( is_customize_preview() || is_active_widget( false, false, $this->id_base ) && ! is_admin() && ! is_network_admin() ) { 39 40 wp_enqueue_script( 'bp-widget-members' ); 40 41 }
Note: See TracChangeset
for help on using the changeset viewer.