Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/19/2016 09:21:46 PM (9 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-core/classes/class-bp-core-login-widget.php

    r10591 r10793  
    2828            _x( '(BuddyPress) Log In', 'Title of the login widget', 'buddypress' ),
    2929            array(
    30                 'description' => __( 'Show a Log In form to logged-out visitors, and a Log Out link to those who are logged in.', 'buddypress' ),
    31                 'classname' => 'widget_bp_core_login_widget buddypress widget',
     30                'description'                 => __( 'Show a Log In form to logged-out visitors, and a Log Out link to those who are logged in.', 'buddypress' ),
     31                'classname'                   => 'widget_bp_core_login_widget buddypress widget',
     32                'customize_selective_refresh' => true,
    3233            )
    3334        );
Note: See TracChangeset for help on using the changeset viewer.