WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/13/2013 03:22:48 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Use get_current_site() instead of the $current_site global when possible.

props jeremyfelt.
fixes #25158.

File:
1 edited

Legend:

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

    r26072 r26120  
    1313// In case admin-header.php is included in a function.
    1414global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,
    15     $current_site, $update_title, $total_update_count, $parent_file;
     15    $update_title, $total_update_count, $parent_file;
     16
     17$current_site = get_current_site();
    1618
    1719// Catch plugins that include admin-header.php before admin.php completes.
Note: See TracChangeset for help on using the changeset viewer.