Make WordPress Core


Ignore:
Timestamp:
11/13/2013 03:22:48 AM (12 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-login.php

    r25991 r26120  
    3131 * @param WP_Error $wp_error Optional. WordPress Error Object
    3232 */
    33 function login_header($title = 'Log In', $message = '', $wp_error = '') {
    34     global $error, $interim_login, $current_site, $action;
     33function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
     34    global $error, $interim_login, $action;
    3535
    3636    // Don't index any of these forms
     
    9191    if ( is_multisite() ) {
    9292        $login_header_url   = network_home_url();
    93         $login_header_title = $current_site->site_name;
     93        $login_header_title = get_current_site()->site_name;
    9494    } else {
    9595        $login_header_url   = __( 'http://wordpress.org/' );
     
    263263 */
    264264function retrieve_password() {
    265     global $wpdb, $current_site, $wp_hasher;
     265    global $wpdb, $wp_hasher;
    266266
    267267    $errors = new WP_Error();
Note: See TracChangeset for help on using the changeset viewer.