- Timestamp:
- 05/19/2016 09:21:46 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/classes/class-bp-core-friends-widget.php
r10613 r10793 25 25 function __construct() { 26 26 $widget_ops = array( 27 'description' => __( 'A dynamic list of recently active, popular, and newest Friends of the displayed member. Widget is only shown when viewing a member profile.', 'buddypress' ), 28 'classname' => 'widget_bp_core_friends_widget buddypress widget', 27 'description' => __( 'A dynamic list of recently active, popular, and newest Friends of the displayed member. Widget is only shown when viewing a member profile.', 'buddypress' ), 28 'classname' => 'widget_bp_core_friends_widget buddypress widget', 29 'customize_selective_refresh' => true, 29 30 ); 30 31 parent::__construct( false, $name = _x( '(BuddyPress) Friends', 'widget name', 'buddypress' ), $widget_ops ); 32 33 if ( is_customize_preview() || is_active_widget( false, false, $this->id_base ) && ! is_admin() && ! is_network_admin() ) { 34 $min = bp_core_get_minified_asset_suffix(); 35 wp_enqueue_script( 'bp_core_widget_friends-js', buddypress()->plugin_url . "bp-friends/js/widget-friends{$min}.js", array( 'jquery' ), bp_get_version() ); 36 } 31 37 32 38 } … … 48 54 return; 49 55 } 50 51 $min = bp_core_get_minified_asset_suffix();52 wp_enqueue_script( 'bp_core_widget_friends-js', buddypress()->plugin_url . "bp-friends/js/widget-friends{$min}.js", array( 'jquery' ), bp_get_version() );53 56 54 57 $user_id = bp_displayed_user_id();
Note: See TracChangeset
for help on using the changeset viewer.