diff --git src/bp-blogs/classes/class-bp-blogs-recent-posts-widget.php src/bp-blogs/classes/class-bp-blogs-recent-posts-widget.php
index 8f647ba56..e71e88fff 100644
|
|
defined( 'ABSPATH' ) || exit; |
12 | 12 | |
13 | 13 | /** |
14 | 14 | * The Recent Networkwide Posts widget. |
| 15 | * |
| 16 | * @since 1.0.0 |
15 | 17 | */ |
16 | 18 | class BP_Blogs_Recent_Posts_Widget extends WP_Widget { |
17 | 19 | |
18 | 20 | /** |
19 | 21 | * Constructor method. |
| 22 | * |
| 23 | * @since 1.5.0 |
| 24 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
20 | 25 | */ |
21 | 26 | public function __construct() { |
22 | 27 | $widget_ops = array( |
23 | 28 | 'description' => __( 'A list of recently published posts from across your network.', 'buddypress' ), |
24 | 29 | 'classname' => 'widget_bp_blogs_widget buddypress widget', |
25 | 30 | 'customize_selective_refresh' => true, |
| 31 | 'show_instance_in_rest' => true, |
26 | 32 | ); |
27 | 33 | parent::__construct( false, $name = _x( '(BuddyPress) Recent Networkwide Posts', 'widget name', 'buddypress' ), $widget_ops ); |
28 | 34 | } |
diff --git src/bp-core/classes/class-bp-core-login-widget.php src/bp-core/classes/class-bp-core-login-widget.php
index 6e975d019..b9c66cbd9 100644
|
|
class BP_Core_Login_Widget extends WP_Widget { |
21 | 21 | * Constructor method. |
22 | 22 | * |
23 | 23 | * @since 1.9.0 |
| 24 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
24 | 25 | */ |
25 | 26 | public function __construct() { |
26 | 27 | parent::__construct( |
… |
… |
class BP_Core_Login_Widget extends WP_Widget { |
30 | 31 | 'description' => __( 'Show a Log In form to logged-out visitors, and a Log Out link to those who are logged in.', 'buddypress' ), |
31 | 32 | 'classname' => 'widget_bp_core_login_widget buddypress widget', |
32 | 33 | 'customize_selective_refresh' => true, |
| 34 | 'show_instance_in_rest' => true, |
33 | 35 | ) |
34 | 36 | ); |
35 | 37 | } |
diff --git src/bp-friends/classes/class-bp-core-friends-widget.php src/bp-friends/classes/class-bp-core-friends-widget.php
index 8ca38d068..bf8fe2fd1 100644
|
|
class BP_Core_Friends_Widget extends WP_Widget { |
21 | 21 | * Class constructor. |
22 | 22 | * |
23 | 23 | * @since 1.9.0 |
| 24 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
24 | 25 | */ |
25 | 26 | function __construct() { |
26 | 27 | $widget_ops = array( |
27 | 28 | 'description' => __( 'A dynamic list of recently active, popular, and newest Friends of the displayed member. Widget is only shown when viewing a member profile.', 'buddypress' ), |
28 | 29 | 'classname' => 'widget_bp_core_friends_widget buddypress widget', |
29 | 30 | 'customize_selective_refresh' => true, |
| 31 | 'show_instance_in_rest' => true, |
30 | 32 | ); |
31 | 33 | parent::__construct( false, $name = _x( '(BuddyPress) Friends', 'widget name', 'buddypress' ), $widget_ops ); |
32 | 34 | |
diff --git src/bp-groups/classes/class-bp-groups-widget.php src/bp-groups/classes/class-bp-groups-widget.php
index 08eadf14e..d539355d7 100644
|
|
class BP_Groups_Widget extends WP_Widget { |
21 | 21 | * Working as a group, we get things done better. |
22 | 22 | * |
23 | 23 | * @since 1.0.3 |
| 24 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
24 | 25 | */ |
25 | 26 | public function __construct() { |
26 | 27 | $widget_ops = array( |
27 | 28 | 'description' => __( 'A dynamic list of recently active, popular, newest, or alphabetical groups', 'buddypress' ), |
28 | 29 | 'classname' => 'widget_bp_groups_widget buddypress widget', |
29 | 30 | 'customize_selective_refresh' => true, |
| 31 | 'show_instance_in_rest' => true, |
30 | 32 | ); |
31 | 33 | parent::__construct( false, _x( '(BuddyPress) Groups', 'widget name', 'buddypress' ), $widget_ops ); |
32 | 34 | |
diff --git src/bp-members/classes/class-bp-core-members-widget.php src/bp-members/classes/class-bp-core-members-widget.php
index b50bc2dbf..63d8b2072 100644
|
|
class BP_Core_Members_Widget extends WP_Widget { |
21 | 21 | * Constructor method. |
22 | 22 | * |
23 | 23 | * @since 1.5.0 |
| 24 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
24 | 25 | */ |
25 | 26 | public function __construct() { |
26 | 27 | |
… |
… |
class BP_Core_Members_Widget extends WP_Widget { |
33 | 34 | 'description' => $description, |
34 | 35 | 'classname' => 'widget_bp_core_members_widget buddypress widget', |
35 | 36 | 'customize_selective_refresh' => true, |
| 37 | 'show_instance_in_rest' => true, |
36 | 38 | ) ); |
37 | 39 | |
38 | 40 | if ( is_customize_preview() || is_active_widget( false, false, $this->id_base ) ) { |
diff --git src/bp-members/classes/class-bp-core-recently-active-widget.php src/bp-members/classes/class-bp-core-recently-active-widget.php
index 9c8408920..2d395fb15 100644
|
|
class BP_Core_Recently_Active_Widget extends WP_Widget { |
21 | 21 | * Constructor method. |
22 | 22 | * |
23 | 23 | * @since 1.5.0 |
| 24 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
24 | 25 | */ |
25 | 26 | public function __construct() { |
26 | 27 | $name = _x( '(BuddyPress) Recently Active Members', 'widget name', 'buddypress' ); |
… |
… |
class BP_Core_Recently_Active_Widget extends WP_Widget { |
29 | 30 | 'description' => $description, |
30 | 31 | 'classname' => 'widget_bp_core_recently_active_widget buddypress widget', |
31 | 32 | 'customize_selective_refresh' => true, |
| 33 | 'show_instance_in_rest' => true, |
32 | 34 | ) ); |
33 | 35 | } |
34 | 36 | |
diff --git src/bp-members/classes/class-bp-core-whos-online-widget.php src/bp-members/classes/class-bp-core-whos-online-widget.php
index 3e98d3259..31dfccef8 100644
|
|
defined( 'ABSPATH' ) || exit; |
14 | 14 | * Who's Online Widget. |
15 | 15 | * |
16 | 16 | * @since 1.0.3 |
| 17 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
17 | 18 | */ |
18 | 19 | class BP_Core_Whos_Online_Widget extends WP_Widget { |
19 | 20 | |
… |
… |
class BP_Core_Whos_Online_Widget extends WP_Widget { |
21 | 22 | * Constructor method. |
22 | 23 | * |
23 | 24 | * @since 1.5.0 |
| 25 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
24 | 26 | */ |
25 | 27 | public function __construct() { |
26 | 28 | $name = _x( "(BuddyPress) Who's Online", 'widget name', 'buddypress' ); |
… |
… |
class BP_Core_Whos_Online_Widget extends WP_Widget { |
29 | 31 | 'description' => $description, |
30 | 32 | 'classname' => 'widget_bp_core_whos_online_widget buddypress widget', |
31 | 33 | 'customize_selective_refresh' => true, |
| 34 | 'show_instance_in_rest' => true, |
32 | 35 | ) ); |
33 | 36 | } |
34 | 37 | |
diff --git src/bp-messages/classes/class-bp-messages-sitewide-notices-widget.php src/bp-messages/classes/class-bp-messages-sitewide-notices-widget.php
index 5ea3ff64b..b215d8f6e 100644
|
|
class BP_Messages_Sitewide_Notices_Widget extends WP_Widget { |
19 | 19 | |
20 | 20 | /** |
21 | 21 | * Constructor method. |
| 22 | * |
| 23 | * @since 1.9.0 |
| 24 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
22 | 25 | */ |
23 | 26 | function __construct() { |
24 | 27 | parent::__construct( |
… |
… |
class BP_Messages_Sitewide_Notices_Widget extends WP_Widget { |
28 | 31 | 'classname' => 'widget_bp_core_sitewide_messages buddypress widget', |
29 | 32 | 'description' => __( 'Display Sitewide Notices posted by the site administrator', 'buddypress' ), |
30 | 33 | 'customize_selective_refresh' => true, |
| 34 | 'show_instance_in_rest' => true, |
31 | 35 | ) |
32 | 36 | ); |
33 | 37 | } |
diff --git src/bp-templates/bp-nouveau/includes/activity/widgets.php src/bp-templates/bp-nouveau/includes/activity/widgets.php
index 206c2d7bc..3358c070d 100644
|
|
class BP_Latest_Activities extends WP_Widget { |
19 | 19 | * Construct the widget. |
20 | 20 | * |
21 | 21 | * @since 3.0.0 |
| 22 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
22 | 23 | */ |
23 | 24 | public function __construct() { |
24 | 25 | |
… |
… |
class BP_Latest_Activities extends WP_Widget { |
34 | 35 | 'classname' => 'bp-latest-activities buddypress', |
35 | 36 | 'description' => __( 'Display the latest updates of your community having the types of your choice.', 'buddypress' ), |
36 | 37 | 'customize_selective_refresh' => true, |
| 38 | 'show_instance_in_rest' => true, |
37 | 39 | ) |
38 | 40 | ); |
39 | 41 | |
diff --git src/bp-templates/bp-nouveau/includes/classes.php src/bp-templates/bp-nouveau/includes/classes.php
index 7a34e9ef9..e898bc8e8 100644
|
|
class BP_Nouveau_Object_Nav_Widget extends WP_Widget { |
191 | 191 | * Constructor |
192 | 192 | * |
193 | 193 | * @since 3.0.0 |
| 194 | * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options. |
194 | 195 | */ |
195 | 196 | public function __construct() { |
196 | 197 | $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, |
199 | 201 | ); |
200 | 202 | |
201 | 203 | parent::__construct( |