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:
Andrew Nacin 2011-10-12 16:24:55 +00:00
parent bdc8ac11ea
commit 103666d6b3
1 changed files with 4 additions and 1 deletions

View File

@ -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 );
}
/**