Make WordPress Core

Changeset 13884 for trunk/wp-login.php


Ignore:
Timestamp:
03/29/2010 09:45:31 PM (17 years ago)
Author:
ryan
Message:

Use network_*_url(). see #12736

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r13490 r13884  
    8686<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>"><?php bloginfo('name'); ?></a></h1>
    8787<?php   } else { ?>
    88 <div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://' . $current_site->domain . $current_site->path ); ?>" title="<?php echo apply_filters('login_headertitle', $current_site->site_name ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
     88<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', network_home_url() ); ?>" title="<?php echo apply_filters('login_headertitle', $current_site->site_name ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
    8989<?php   }
    9090
    … …  
    185185        }
    186186        $message = __('Someone has asked to reset the password for the following site and username.') . "\r\n\r\n";
    187         if ( !is_multisite() )
    188                 $message .= get_option('siteurl') . "\r\n\r\n";
    189         else
    190                 $message .= 'http://' . trailingslashit( $current_site->domain . $current_site->path ) . "\r\n\r\n";
     187        $message .= network_site_url() . "\r\n\r\n";
    191188        $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
    192189        $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
    193         if ( !is_multisite() )
    194                 $message .= site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n";
    195         else
    196                 $message .= 'http://' . trailingslashit( $current_site->domain . $current_site->path ) . "wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login) . "\r\n";
     190        $message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n";
    197191
    198192        if ( is_multisite() )
Note: See TracChangeset for help on using the changeset viewer.