Make WordPress Core


Ignore:
Timestamp:
12/01/2011 03:29:55 AM (14 years ago)
Author:
nacin
Message:

Deprecate add_contextual_help() for get_current_screen()->add_help_tab(). fixes #19020.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/screen.php

    r19503 r19520  
    106106
    107107    return apply_filters( 'hidden_meta_boxes', $hidden, $screen, $use_defaults );
    108 }
    109 
    110 /**
    111  * Add contextual help text for a page.
    112  *
    113  * Creates an 'Overview' help tab.
    114  *
    115  * @since 2.7.0
    116  *
    117  * @param string    $screen The handle for the screen to add help to.  This is usually the hook name returned by the add_*_page() functions.
    118  * @param string    $help   The content of an 'Overview' help tab.
    119  *
    120  * @todo: deprecate?
    121  */
    122 function add_contextual_help( $screen, $help ) {
    123     if ( is_string( $screen ) )
    124         $screen = convert_to_screen( $screen );
    125 
    126     WP_Screen::add_old_compat_help( $screen, $help );
    127108}
    128109
Note: See TracChangeset for help on using the changeset viewer.