Skip to:
Content

BuddyPress.org

Ticket #9161: 9161.01.patch

File 9161.01.patch, 1.8 KB (added by emaralive, 11 months ago)

Initial patch

  • src/bp-core/admin/bp-core-admin-functions.php

    diff --git src/bp-core/admin/bp-core-admin-functions.php src/bp-core/admin/bp-core-admin-functions.php
    index c068195a2..2b808d98c 100644
    function bp_core_add_contextual_help( $screen = '' ) { 
    833833                                esc_html__( 'BP Email tokens usage', 'buddypress' )
    834834                        );
    835835                        break;
     836
     837                case 'tools_page_bp-tools':
     838                        // Help tab.
     839                        $screen->add_help_tab(
     840                                array(
     841                                        'id'      => 'bp-tools-repair-overview',
     842                                        'title'   => __( 'Overview', 'buddypress' ),
     843                                        'content' => bp_core_add_contextual_help_content( 'bp-tools-repair-overview' ),
     844                                )
     845                        );
     846
     847                        $documentation_link = sprintf(
     848                                '<a href="%1$s">%2$s</a>',
     849                                esc_url( 'https://github.com/buddypress/buddypress/blob/master/docs/user/administration/tools/repair.md' ),
     850                                esc_html__( 'BP Repair Tool', 'buddypress' )
     851                        );
     852                        break;
    836853        }
    837854
    838855        if ( $documentation_link ) {
    add_action( 'load-settings_page_bp-rewrites', 'bp_core_add_contextual_help' ); 
    855872add_action( 'load-settings_page_bp-settings', 'bp_core_add_contextual_help' );
    856873add_action( 'load-users_page_bp-profile-setup', 'bp_core_add_contextual_help' );
    857874add_action( 'bp_admin_load_bp_member_type', 'bp_core_add_contextual_help' );
     875add_action( 'admin_head-tools_page_bp-tools', 'bp_core_add_contextual_help' );
    858876
    859877/**
    860878 * Renders contextual help content to contextual help tabs.
    function bp_core_add_contextual_help_content( $tab = '' ) { 
    903921                        );
    904922                        break;
    905923
     924                case 'bp-tools-repair-overview':
     925                        $retval = __( 'This is the administration screen to help you perform an assortment of repair tasks when your BuddyPress relationships are out of sync or conduct other bulk operations.', 'buddypress' );
     926                        break;
     927
    906928                default:
    907929                        $retval = false;
    908930                        break;