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

    r12324 r12976  
    1313/**
    1414 * The Recent Networkwide Posts widget.
     15 *
     16 * @since 1.0.0
    1517 */
    1618class BP_Blogs_Recent_Posts_Widget extends WP_Widget {
     
    1820    /**
    1921     * Constructor method.
     22     *
     23     * @since 1.5.0
     24     * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    2025     */
    2126    public function __construct() {
     
    2429            'classname'                   => 'widget_bp_blogs_widget buddypress widget',
    2530            'customize_selective_refresh' => true,
     31            'show_instance_in_rest'       => true,
    2632        );
    2733        parent::__construct( false, $name = _x( '(BuddyPress) Recent Networkwide Posts', 'widget name', 'buddypress' ), $widget_ops );
Note: See TracChangeset for help on using the changeset viewer.