WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/01/2011 03:37:22 AM (9 years ago)
Author:
nacin
Message:

Call set_current_screen() again in admin-header.php in case a plugin includes admin-header.php before admin.php completes. Rare and silly, but seen in the wild. props ryan, see #18785.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r19376 r19522  
    1414global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version, $is_iphone,
    1515    $current_site, $update_title, $total_update_count, $parent_file;
     16
     17// Catch plugins that include admin-header.php before admin.php completes.
     18if ( empty( $current_screen ) )
     19    set_current_screen();
    1620
    1721get_admin_page_title();
Note: See TracChangeset for help on using the changeset viewer.