mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user