Restore object handling in add_contextual_help(). see #18785.
git-svn-id: https://develop.svn.wordpress.org/trunk@18950 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bdc8ac11ea
commit
103666d6b3
|
@ -248,7 +248,10 @@ function convert_to_screen( $screen ) {
|
||||||
* @todo: deprecate?
|
* @todo: deprecate?
|
||||||
*/
|
*/
|
||||||
function add_contextual_help( $screen, $help ) {
|
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