Skip to:
Content

BuddyPress.org

Ticket #9149: 9149.01.patch

File 9149.01.patch, 1.7 KB (added by emaralive, 3 years ago)

Initial patch

  • src/bp-members/classes/class-bp-members-admin.php

    diff --git src/bp-members/classes/class-bp-members-admin.php src/bp-members/classes/class-bp-members-admin.php
    index 25842a31c..62aa9c919 100644
    class BP_Members_Admin {  
    5353
    5454        /** Other *****************************************************************/
    5555
     56        /**
     57         * Support forum link..
     58         *
     59         * @since 12.5.0
     60         * @var string
     61         */
     62        private $bp_forum = '';
     63
    5664        /**
    5765         * Redirect.
    5866         *
    … … class BP_Members_Admin {  
    256264                        $this->capability = 'manage_network_users';
    257265                }
    258266
     267                // Support forum link.
     268                $this->bp_forum = sprintf(
     269                        '<a href="%1$s">%2$s</a>',
     270                        esc_url( 'https://buddypress.org/support/' ),
     271                        esc_html__( 'Support Forums', 'buddypress' )
     272                );
     273
    259274                /*
    260275                 * For consistency with non-Multisite, we add a Tools menu in
    261276                 * the Network Admin as a home for our Tools panel.
    … … class BP_Members_Admin {  
    18781893                                'content' => $signup_help_content
    18791894                        ) );
    18801895
     1896                        $manage_pending_ua = sprintf(
     1897                                '<a href="%1$s">%2$s</a>',
     1898                                esc_url( 'https://github.com/buddypress/buddypress/blob/master/docs/user/administration/users/signups.md#manage-pending-user-accounts' ),
     1899                                esc_html__( 'Managing Pending User Accounts', 'buddypress' )
     1900                        );
     1901
    18811902                        // Help panel - sidebar links.
    18821903                        get_current_screen()->set_help_sidebar(
    18831904                                '<p><strong>' . esc_html__( 'For more information:', 'buddypress' ) . '</strong></p>' .
    1884                                 '<p>' . __( '<a href="https://buddypress.org/support/">Support Forums</a>', 'buddypress' ) . '</p>'
     1905                                '<p>' . $manage_pending_ua . '</p>' .
     1906                                '<p>' . $this->bp_forum . '</p>'
    18851907                        );
    18861908
    18871909                        // Add accessible hidden headings and text for the Pending Users screen.