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-blogs/classes/class-bp-blogs-recent-posts-widget.php

    r10553 r10793  
    2121    public function __construct() {
    2222        $widget_ops = array(
    23             'description' => __( 'A list of recently published posts from across your network.', 'buddypress' ),
    24             'classname'   => 'widget_bp_blogs_widget buddypress widget',
     23            'description'                 => __( 'A list of recently published posts from across your network.', 'buddypress' ),
     24            'classname'                   => 'widget_bp_blogs_widget buddypress widget',
     25            'customize_selective_refresh' => true,
    2526        );
    2627        parent::__construct( false, $name = _x( '(BuddyPress) Recent Networkwide Posts', 'widget name', 'buddypress' ), $widget_ops );
Note: See TracChangeset for help on using the changeset viewer.