Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/27/2021 10:47:39 AM (4 years ago)
Author:
imath
Message:

Set the show_instance_in_rest to true for all BP Widgets options

Using this widget option will allow users to transform our legacy widgets to widget blocks.

Fixes #8496

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/classes/class-bp-core-friends-widget.php

    r12323 r12976  
    2222     *
    2323     * @since 1.9.0
     24     * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    2425     */
    2526    function __construct() {
     
    2829            'classname'                   => 'widget_bp_core_friends_widget buddypress widget',
    2930            'customize_selective_refresh' => true,
     31            'show_instance_in_rest'       => true,
    3032        );
    3133        parent::__construct( false, $name = _x( '(BuddyPress) Friends', 'widget name', 'buddypress' ), $widget_ops );
Note: See TracChangeset for help on using the changeset viewer.