contextual_help_link filter. Pass page hook instead of pagenow to screen_meta(). fixes #8216
git-svn-id: https://develop.svn.wordpress.org/trunk@9702 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2acf13eb85
commit
8a4a704212
|
@ -91,7 +91,7 @@ if ( function_exists('mb_strlen') ) {
|
|||
<?php
|
||||
do_action('admin_notices');
|
||||
|
||||
screen_meta($pagenow, $hook_suffix);
|
||||
screen_meta($hook_suffix);
|
||||
unset($hook_suffix);
|
||||
|
||||
if ( $parent_file == 'options-general.php' ) {
|
||||
|
|
|
@ -3177,7 +3177,7 @@ function _post_states($post) {
|
|||
}
|
||||
}
|
||||
|
||||
function screen_meta($screen, $suffix = '') {
|
||||
function screen_meta($screen) {
|
||||
global $wp_meta_boxes;
|
||||
|
||||
$screen = str_replace('.php', '', $screen);
|
||||
|
@ -3220,7 +3220,8 @@ function screen_meta($screen, $suffix = '') {
|
|||
global $title;
|
||||
|
||||
$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">
|
||||
<?php
|
||||
|
@ -3242,7 +3243,7 @@ function screen_meta($screen, $suffix = '') {
|
|||
$contextual_help .= '<br />';
|
||||
$contextual_help .= __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>');
|
||||
$contextual_help .= "</div>\n";
|
||||
echo apply_filters('contextual_help', $contextual_help, $screen, $suffix);
|
||||
echo apply_filters('contextual_help', $contextual_help, $screen);
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue