WordPress.org

Make WordPress Core

Changeset 19047


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.

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r19028 r19047  
    464464
    465465    function single_row( $a_post, $level = 0 ) {
    466         global $post, $current_screen, $mode;
     466        global $post, $mode;
    467467        static $alternate;
    468468
  • 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.