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/deprecated.php

    r19420 r19520  
    860860    return wp_media_insert_url_form( 'file' );
    861861}
     862
     863/**
     864 * Add contextual help text for a page.
     865 *
     866 * Creates an 'Overview' help tab.
     867 *
     868 * @since 2.7.0
     869 * @deprecated 3.3.0
     870 * @deprecated Use get_current_screen()->add_help_tab()
     871 * @see WP_Screen
     872 *
     873 * @param string    $screen The handle for the screen to add help to.  This is usually the hook name returned by the add_*_page() functions.
     874 * @param string    $help   The content of an 'Overview' help tab.
     875 */
     876function add_contextual_help( $screen, $help ) {
     877    _deprecated_function( __FUNCTION__, '3.3', 'get_current_screen()->add_help_tab()' );
     878
     879    if ( is_string( $screen ) )
     880        $screen = convert_to_screen( $screen );
     881
     882    WP_Screen::add_old_compat_help( $screen, $help );
     883}
Note: See TracChangeset for help on using the changeset viewer.