From c4642a583456bea4de3fe102d6f10a9e1d615c5c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 18 Nov 2008 19:54:54 +0000 Subject: [PATCH] add_contextual_help() git-svn-id: https://develop.svn.wordpress.org/trunk@9761 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 35 +++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 91a0944e2f..a3fcce2581 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -3199,7 +3199,7 @@ function _post_states($post) { } function screen_meta($screen) { - global $wp_meta_boxes; + global $wp_meta_boxes, $_wp_contextual_help; $screen = str_replace('.php', '', $screen); $screen = str_replace('-new', '', $screen); @@ -3237,19 +3237,23 @@ function screen_meta($screen) { global $title; - $help['post'] = __('Writing Posts'); - $help['options-general'] = __('General Settings'); - $help = apply_filters('contextual_help_link', $help, $screen); + if ( !isset($_wp_contextual_help) ) + $_wp_contextual_help = array(); + if ( !isset($_wp_contextual_help['post']) ) + $_wp_contextual_help['post'] = __('Writing Posts'); + if ( !isset($_wp_contextual_help['options-general']) ) + $_wp_contextual_help['options-general'] = __('General Settings'); + $_wp_contextual_help = apply_filters('contextual_help_list', $_wp_contextual_help, $screen); ?>