Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/19/2016 09:21:46 PM (8 years ago)
Author:
r-a-y
Message:

Widgets: Add support for WP Customizer's selective refresh.

This functionality is available as of WordPress 4.5.0.

For more details, view the WP development post:
https://make.wordpress.org/core/2016/03/22/implementing-selective-refresh-support-for-widgets/

Props lakrisgubben.
Fixes #7030.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-core-recently-active-widget.php

    r10711 r10793  
    2727        $description = __( 'Profile photos of recently active members', 'buddypress' );
    2828        parent::__construct( false, $name, array(
    29             'description' => $description,
    30             'classname'   => 'widget_bp_core_recently_active_widget buddypress widget',
     29            'description'                 => $description,
     30            'classname'                   => 'widget_bp_core_recently_active_widget buddypress widget',
     31            'customize_selective_refresh' => true,
    3132        ) );
    3233    }
Note: See TracChangeset for help on using the changeset viewer.