WordPress.org

Make WordPress Core

Ticket #18287: 18287.patch

File 18287.patch, 1.5 KB (added by SergeyBiryukov, 4 years ago)

with home_url()

  • wp-login.php

     
    8686<?php   if ( !is_multisite() ) { ?> 
    8787<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', esc_attr__('Powered by WordPress')); ?>"><?php bloginfo('name'); ?></a></h1> 
    8888<?php   } else { ?> 
    89 <div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', network_home_url() ); ?>" title="<?php echo apply_filters('login_headertitle', esc_attr($current_site->site_name) ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1> 
     89<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', home_url() ); ?>" title="<?php echo apply_filters('login_headertitle', esc_attr($current_site->site_name) ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1> 
    9090<?php   } 
    9191 
    9292        $message = apply_filters('login_message', $message); 
     
    124124 */ 
    125125function login_footer($input_id = '') { 
    126126        ?> 
    127         <p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php esc_attr_e('Are you lost?') ?>"><?php printf(__('&larr; Back to %s'), get_bloginfo('title', 'display' )); ?></a></p> 
     127        <p id="backtoblog"><a href="<?php echo home_url(); ?>/" title="<?php esc_attr_e('Are you lost?') ?>"><?php printf(__('&larr; Back to %s'), get_bloginfo('title', 'display' )); ?></a></p> 
    128128        </div> 
    129129 
    130130<?php if ( !empty($input_id) ) : ?>