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-templates/bp-nouveau/includes/classes.php

    r12156 r12976  
    192192     *
    193193     * @since 3.0.0
     194     * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    194195     */
    195196    public function __construct() {
    196197        $widget_ops = array(
    197             'description' => __( 'Displays BuddyPress primary nav in the sidebar of your site. Make sure to use it as the first widget of the sidebar and only once.', 'buddypress' ),
    198             'classname'   => 'widget_nav_menu buddypress_object_nav',
     198            'description'           => __( 'Displays BuddyPress primary nav in the sidebar of your site. Make sure to use it as the first widget of the sidebar and only once.', 'buddypress' ),
     199            'classname'             => 'widget_nav_menu buddypress_object_nav',
     200            'show_instance_in_rest' => true,
    199201        );
    200202
Note: See TracChangeset for help on using the changeset viewer.