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:
nacin 2011-10-12 16:24:55 +00:00
parent aa06a7de9f
commit 936107846c

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