Use get_current_screen() rather than a $current_screen global reference. Remove unused global reference. see #14886.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-10-23 18:01:33 +00:00
parent 7ed04cc2f3
commit f6368c50c4
2 changed files with 4 additions and 2 deletions

View File

@ -463,7 +463,7 @@ class WP_Posts_List_Table extends WP_List_Table {
}
function single_row( $a_post, $level = 0 ) {
global $post, $current_screen, $mode;
global $post, $mode;
static $alternate;
$global_post = $post;

View File

@ -1370,9 +1370,11 @@ function _admin_search_query() {
*/
function iframe_header( $title = '', $limit_styles = false ) {
show_admin_bar( false );
global $hook_suffix, $current_screen, $current_user, $admin_body_class, $wp_locale;
global $hook_suffix, $current_user, $admin_body_class, $wp_locale;
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
$current_screen = get_current_screen();
_wp_admin_html_begin();
?>
<title><?php bloginfo('name') ?> &rsaquo; <?php echo $title ?> &#8212; <?php _e('WordPress'); ?></title>