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 = '' ) { |
| 833 | 833 | esc_html__( 'BP Email tokens usage', 'buddypress' ) |
| 834 | 834 | ); |
| 835 | 835 | 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; |
| 836 | 853 | } |
| 837 | 854 | |
| 838 | 855 | if ( $documentation_link ) { |
| … |
… |
add_action( 'load-settings_page_bp-rewrites', 'bp_core_add_contextual_help' ); |
| 855 | 872 | add_action( 'load-settings_page_bp-settings', 'bp_core_add_contextual_help' ); |
| 856 | 873 | add_action( 'load-users_page_bp-profile-setup', 'bp_core_add_contextual_help' ); |
| 857 | 874 | add_action( 'bp_admin_load_bp_member_type', 'bp_core_add_contextual_help' ); |
| | 875 | add_action( 'admin_head-tools_page_bp-tools', 'bp_core_add_contextual_help' ); |
| 858 | 876 | |
| 859 | 877 | /** |
| 860 | 878 | * Renders contextual help content to contextual help tabs. |
| … |
… |
function bp_core_add_contextual_help_content( $tab = '' ) { |
| 903 | 921 | ); |
| 904 | 922 | break; |
| 905 | 923 | |
| | 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 | |
| 906 | 928 | default: |
| 907 | 929 | $retval = false; |
| 908 | 930 | break; |