WordPress.org

Make WordPress Core

Ticket #13245: 13245.patch

File 13245.patch, 2.9 KB (added by zeo, 4 years ago)
  • wp-includes/post-template.php

     
    838838                $class = ''; 
    839839                if ( is_front_page() && !is_paged() ) 
    840840                        $class = 'class="current_page_item"'; 
    841                 $menu .= '<li ' . $class . '><a href="' . home_url() . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>'; 
     841                $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>'; 
    842842                // If the front page is a page, add it to the exclude list 
    843843                if (get_option('show_on_front') == 'page') { 
    844844                        if ( !empty( $list_args['exclude'] ) ) { 
  • wp-admin/custom-header.php

     
    373373<?php 
    374374if ( isset($_GET['updated']) && $_GET['updated'] ) { ?> 
    375375<div id="message" class="updated"> 
    376 <p><?php printf(__('Header updated. <a href="%s">Visit your site</a> to see how it looks.'), home_url()); ?></p> 
     376<p><?php printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p> 
    377377</div> 
    378378<?php } 
    379379 
  • wp-admin/themes.php

     
    5454                if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) ) { ?> 
    5555<div id="message2" class="updated"><p><?php printf( __('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings</a> screen to configure them.'), admin_url( 'widgets.php' ) ); ?></p></div><?php 
    5656                } else { ?> 
    57 <div id="message2" class="updated"><p><?php printf( __('New theme activated. <a href="%s">Visit site</a>'), home_url( '/ ' ) ); ?></p></div><?php 
     57<div id="message2" class="updated"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php 
    5858                } 
    5959        elseif ( isset($_GET['deleted']) ) : ?> 
    6060<div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div> 
  • wp-admin/custom-background.php

     
    140140<h2><?php _e('Custom Background'); ?></h2> 
    141141<?php if ( !empty($this->updated) ) { ?> 
    142142<div id="message" class="updated"> 
    143 <p><?php printf(__('Background updated. <a href="%s">Visit your site</a> to see how it looks.'), home_url()); ?></p> 
     143<p><?php printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p> 
    144144</div> 
    145145<?php } 
    146146