Make WordPress Core

Changeset 9702


Ignore:
Timestamp:
11/14/2008 11:54:15 PM (18 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r9657 r9702  
    9292do_action('admin_notices');
    9393
    94 screen_meta($pagenow, $hook_suffix);
     94screen_meta($hook_suffix);
    9595unset($hook_suffix);
    9696
  • trunk/wp-admin/includes/template.php

    r9691 r9702  
    31783178}
    31793179
    3180 function screen_meta($screen, $suffix = '') {
     3180function screen_meta($screen) {
    31813181    global $wp_meta_boxes;
    31823182
     
    32213221
    32223222    $help['post'] =  __('<a href="http://codex.wordpress.org/Writing_Posts" target="_blank">Writing Posts</a>');
    3223     $help['general-settings'] =  __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>');
     3223    $help['options-general'] =  __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>');
     3224    $help = apply_filters('contextual_help_link', $help, $screen);
    32243225    ?>
    32253226    <div id="contextual-help-wrap" class="hidden">
     
    32433244    $contextual_help .= __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>');
    32443245    $contextual_help .= "</div>\n";
    3245     echo apply_filters('contextual_help', $contextual_help, $screen, $suffix);
     3246    echo apply_filters('contextual_help', $contextual_help, $screen);
    32463247    ?>
    32473248    </div>
Note: See TracChangeset for help on using the changeset viewer.