WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2011 06:01:33 PM (9 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r19030 r19047  
    13711371function iframe_header( $title = '', $limit_styles = false ) {
    13721372    show_admin_bar( false );
    1373     global $hook_suffix, $current_screen, $current_user, $admin_body_class, $wp_locale;
     1373    global $hook_suffix, $current_user, $admin_body_class, $wp_locale;
    13741374    $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
     1375
     1376    $current_screen = get_current_screen();
    13751377
    13761378    _wp_admin_html_begin();
Note: See TracChangeset for help on using the changeset viewer.