X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa6ee2c363cdfdebcb4b76e4d9c4347a4cb19065..refs/tags/wordpress-4.2:/wp-admin/includes/screen.php diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 0482d783..3572446d 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -368,14 +368,15 @@ final class WP_Screen { * @since 3.3.0 * @access public * - * @param string $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen. + * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen. * Defaults to the current $hook_suffix global. * @return WP_Screen Screen object. */ public static function get( $hook_name = '' ) { - if ( is_a( $hook_name, 'WP_Screen' ) ) + if ( $hook_name instanceof WP_Screen ) { return $hook_name; + } $post_type = $taxonomy = null; $in_admin = false; @@ -1025,7 +1026,7 @@ final class WP_Screen { ?>