mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-11 01:51:34 +01:00
Restore object handling in add_contextual_help(). see #18785.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aa06a7de9f
commit
936107846c
@ -248,7 +248,10 @@ function convert_to_screen( $screen ) {
|
||||
* @todo: deprecate?
|
||||
*/
|
||||
function add_contextual_help( $screen, $help ) {
|
||||
WP_Screen::add_old_compat_help( $screen, $help );
|
||||
if ( is_string( $screen ) )
|
||||
$screen = convert_to_screen( $screen );
|
||||
|
||||
WP_Screen::add_old_compat_help( $screen->id, $help );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user