Skip to:
Content

BuddyPress.org

Ticket #8496: 8496.patch

File 8496.patch, 9.8 KB (added by imath, 4 years ago)
  • src/bp-blogs/classes/class-bp-blogs-recent-posts-widget.php

    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; 
    1212
    1313/**
    1414 * The Recent Networkwide Posts widget.
     15 *
     16 * @since 1.0.0
    1517 */
    1618class BP_Blogs_Recent_Posts_Widget extends WP_Widget {
    1719
    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() {
    2227                $widget_ops = array(
    2328                        'description'                 => __( 'A list of recently published posts from across your network.', 'buddypress' ),
    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 );
    2834        }
  • src/bp-core/classes/class-bp-core-login-widget.php

    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 { 
    2121         * Constructor method.
    2222         *
    2323         * @since 1.9.0
     24         * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    2425         */
    2526        public function __construct() {
    2627                parent::__construct(
    class BP_Core_Login_Widget extends WP_Widget { 
    3031                                'description'                 => __( 'Show a Log In form to logged-out visitors, and a Log Out link to those who are logged in.', 'buddypress' ),
    3132                                'classname'                   => 'widget_bp_core_login_widget buddypress widget',
    3233                                'customize_selective_refresh' => true,
     34                                'show_instance_in_rest'       => true,
    3335                        )
    3436                );
    3537        }
  • src/bp-friends/classes/class-bp-core-friends-widget.php

    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 { 
    2121         * Class constructor.
    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() {
    2627                $widget_ops = array(
    2728                        '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' ),
    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 );
    3234
  • src/bp-groups/classes/class-bp-groups-widget.php

    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 { 
    2121         * Working as a group, we get things done better.
    2222         *
    2323         * @since 1.0.3
     24         * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    2425         */
    2526        public function __construct() {
    2627                $widget_ops = array(
    2728                        'description'                 => __( 'A dynamic list of recently active, popular, newest, or alphabetical groups', 'buddypress' ),
    2829                        'classname'                   => 'widget_bp_groups_widget buddypress widget',
    2930                        'customize_selective_refresh' => true,
     31                        'show_instance_in_rest'       => true,
    3032                );
    3133                parent::__construct( false, _x( '(BuddyPress) Groups', 'widget name', 'buddypress' ), $widget_ops );
    3234
  • src/bp-members/classes/class-bp-core-members-widget.php

    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 { 
    2121         * Constructor method.
    2222         *
    2323         * @since 1.5.0
     24         * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    2425         */
    2526        public function __construct() {
    2627
    class BP_Core_Members_Widget extends WP_Widget { 
    3334                        'description'                 => $description,
    3435                        'classname'                   => 'widget_bp_core_members_widget buddypress widget',
    3536                        'customize_selective_refresh' => true,
     37                        'show_instance_in_rest'       => true,
    3638                ) );
    3739
    3840                if ( is_customize_preview() || is_active_widget( false, false, $this->id_base ) ) {
  • src/bp-members/classes/class-bp-core-recently-active-widget.php

    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 { 
    2121         * Constructor method.
    2222         *
    2323         * @since 1.5.0
     24         * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    2425         */
    2526        public function __construct() {
    2627                $name        = _x( '(BuddyPress) Recently Active Members', 'widget name', 'buddypress' );
    class BP_Core_Recently_Active_Widget extends WP_Widget { 
    2930                        'description'                 => $description,
    3031                        'classname'                   => 'widget_bp_core_recently_active_widget buddypress widget',
    3132                        'customize_selective_refresh' => true,
     33                        'show_instance_in_rest'       => true,
    3234                ) );
    3335        }
    3436
  • src/bp-members/classes/class-bp-core-whos-online-widget.php

    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; 
    1414 * Who's Online Widget.
    1515 *
    1616 * @since 1.0.3
     17 * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    1718 */
    1819class BP_Core_Whos_Online_Widget extends WP_Widget {
    1920
    class BP_Core_Whos_Online_Widget extends WP_Widget { 
    2122         * Constructor method.
    2223         *
    2324         * @since 1.5.0
     25         * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    2426         */
    2527        public function __construct() {
    2628                $name        = _x( "(BuddyPress) Who's Online", 'widget name', 'buddypress' );
    class BP_Core_Whos_Online_Widget extends WP_Widget { 
    2931                        'description'                 => $description,
    3032                        'classname'                   => 'widget_bp_core_whos_online_widget buddypress widget',
    3133                        'customize_selective_refresh' => true,
     34                        'show_instance_in_rest'       => true,
    3235                ) );
    3336        }
    3437
  • src/bp-messages/classes/class-bp-messages-sitewide-notices-widget.php

    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 { 
    1919
    2020        /**
    2121         * Constructor method.
     22         *
     23         * @since 1.9.0
     24         * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    2225         */
    2326        function __construct() {
    2427                parent::__construct(
    class BP_Messages_Sitewide_Notices_Widget extends WP_Widget { 
    2831                                'classname'                   => 'widget_bp_core_sitewide_messages buddypress widget',
    2932                                'description'                 => __( 'Display Sitewide Notices posted by the site administrator', 'buddypress' ),
    3033                                'customize_selective_refresh' => true,
     34                                'show_instance_in_rest'       => true,
    3135                        )
    3236                );
    3337        }
  • src/bp-templates/bp-nouveau/includes/activity/widgets.php

    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 { 
    1919         * Construct the widget.
    2020         *
    2121         * @since 3.0.0
     22         * @since 9.0.0 Adds the `show_instance_in_rest` property to Widget options.
    2223         */
    2324        public function __construct() {
    2425
    class BP_Latest_Activities extends WP_Widget { 
    3435                                'classname'                   => 'bp-latest-activities buddypress',
    3536                                'description'                 => __( 'Display the latest updates of your community having the types of your choice.', 'buddypress' ),
    3637                                'customize_selective_refresh' => true,
     38                                'show_instance_in_rest'       => true,
    3739                        )
    3840                );
    3941
  • src/bp-templates/bp-nouveau/includes/classes.php

    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 { 
    191191         * Constructor
    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
    201203                parent::__construct(