Ticket #22039: 22039.patch
File 22039.patch, 633 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/screen.php
387 387 * @return WP_Screen Screen object. 388 388 */ 389 389 public static function get( $hook_name = '' ) { 390 390 global $hook_suffix; 391 391 if ( is_a( $hook_name, 'WP_Screen' ) ) 392 392 return $hook_name; 393 393 … … 398 398 if ( $hook_name ) 399 399 $id = $hook_name; 400 400 else 401 $id = $ GLOBALS['hook_suffix'];401 $id = $hook_suffix; 402 402 403 403 // For those pesky meta boxes. 404 404 if ( $hook_name && post_type_exists( $hook_name ) ) {