contextual_help_link filter. Pass page hook instead of pagenow to screen_meta(). fixes #8216

git-svn-id: http://svn.automattic.com/wordpress/trunk@9702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-14 23:54:15 +00:00
parent 29ab18dcb7
commit ae3fc05253
2 changed files with 5 additions and 4 deletions

View File

@ -91,7 +91,7 @@ if ( function_exists('mb_strlen') ) {
<?php <?php
do_action('admin_notices'); do_action('admin_notices');
screen_meta($pagenow, $hook_suffix); screen_meta($hook_suffix);
unset($hook_suffix); unset($hook_suffix);
if ( $parent_file == 'options-general.php' ) { if ( $parent_file == 'options-general.php' ) {

View File

@ -3177,7 +3177,7 @@ function _post_states($post) {
} }
} }
function screen_meta($screen, $suffix = '') { function screen_meta($screen) {
global $wp_meta_boxes; global $wp_meta_boxes;
$screen = str_replace('.php', '', $screen); $screen = str_replace('.php', '', $screen);
@ -3220,7 +3220,8 @@ function screen_meta($screen, $suffix = '') {
global $title; global $title;
$help['post'] = __('<a href="http://codex.wordpress.org/Writing_Posts" target="_blank">Writing Posts</a>'); $help['post'] = __('<a href="http://codex.wordpress.org/Writing_Posts" target="_blank">Writing Posts</a>');
$help['general-settings'] = __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>'); $help['options-general'] = __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>');
$help = apply_filters('contextual_help_link', $help, $screen);
?> ?>
<div id="contextual-help-wrap" class="hidden"> <div id="contextual-help-wrap" class="hidden">
<?php <?php
@ -3242,7 +3243,7 @@ function screen_meta($screen, $suffix = '') {
$contextual_help .= '<br />'; $contextual_help .= '<br />';
$contextual_help .= __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>'); $contextual_help .= __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>');
$contextual_help .= "</div>\n"; $contextual_help .= "</div>\n";
echo apply_filters('contextual_help', $contextual_help, $screen, $suffix); echo apply_filters('contextual_help', $contextual_help, $screen);
?> ?>
</div> </div>