Changeset 10793 for trunk/src/bp-groups/classes/class-bp-groups-widget.php
- Timestamp:
- 05/19/2016 09:21:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-widget.php
r10613 r10793 25 25 public function __construct() { 26 26 $widget_ops = array( 27 'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ), 28 'classname' => 'widget_bp_groups_widget buddypress widget', 27 'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ), 28 'classname' => 'widget_bp_groups_widget buddypress widget', 29 'customize_selective_refresh' => true, 29 30 ); 30 31 parent::__construct( false, _x( '(BuddyPress) Groups', 'widget name', 'buddypress' ), $widget_ops ); 31 32 32 if ( is_ active_widget( false, false, $this->id_base ) && ! is_admin() && ! is_network_admin() ) {33 if ( is_customize_preview() || is_active_widget( false, false, $this->id_base ) && ! is_admin() && ! is_network_admin() ) { 33 34 $min = bp_core_get_minified_asset_suffix(); 34 35 wp_enqueue_script( 'groups_widget_groups_list-js', buddypress()->plugin_url . "bp-groups/js/widget-groups{$min}.js", array( 'jquery' ), bp_get_version() );
Note: See TracChangeset
for help on using the changeset viewer.