mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Deprecate add_contextual_help() for get_current_screen()->add_help_tab(). fixes #19020.
git-svn-id: https://develop.svn.wordpress.org/trunk@19520 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -107,25 +107,6 @@ function get_hidden_meta_boxes( $screen ) {
|
||||
return apply_filters( 'hidden_meta_boxes', $hidden, $screen, $use_defaults );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add contextual help text for a page.
|
||||
*
|
||||
* Creates an 'Overview' help tab.
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
|
||||
* @param string $help The content of an 'Overview' help tab.
|
||||
*
|
||||
* @todo: deprecate?
|
||||
*/
|
||||
function add_contextual_help( $screen, $help ) {
|
||||
if ( is_string( $screen ) )
|
||||
$screen = convert_to_screen( $screen );
|
||||
|
||||
WP_Screen::add_old_compat_help( $screen, $help );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register and configure an admin screen option
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user