From e725b36d1e86c3d08d72fbd4c2f5686f7d9ff0f8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 30 Jan 2015 15:33:33 +0000 Subject: [PATCH] Don't display the Help tab reference in Page Attributes meta box if Help tab was removed. props bananastalktome. fixes #31164. git-svn-id: https://develop.svn.wordpress.org/trunk@31303 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index dac1c5a179..bf73bf03cd 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -763,8 +763,10 @@ $default_title = apply_filters( 'default_page_template_title', __( 'Default Tem } ?>

-

post_type ) _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?>

+post_type && get_current_screen()->get_help_tabs() ) { ?> +