Add trailing slash to some home_url() calls. props zeo, fixes #13245.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9e81303893
commit
9fb099891f
|
@ -140,7 +140,7 @@ class Custom_Background {
|
||||||
<h2><?php _e('Custom Background'); ?></h2>
|
<h2><?php _e('Custom Background'); ?></h2>
|
||||||
<?php if ( !empty($this->updated) ) { ?>
|
<?php if ( !empty($this->updated) ) { ?>
|
||||||
<div id="message" class="updated">
|
<div id="message" class="updated">
|
||||||
<p><?php printf(__('Background updated. <a href="%s">Visit your site</a> to see how it looks.'), home_url()); ?></p>
|
<p><?php printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
|
|
|
@ -373,7 +373,7 @@ class Custom_Image_Header {
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_GET['updated']) && $_GET['updated'] ) { ?>
|
if ( isset($_GET['updated']) && $_GET['updated'] ) { ?>
|
||||||
<div id="message" class="updated">
|
<div id="message" class="updated">
|
||||||
<p><?php printf(__('Header updated. <a href="%s">Visit your site</a> to see how it looks.'), home_url()); ?></p>
|
<p><?php printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
||||||
|
|
|
@ -838,7 +838,7 @@ function wp_page_menu( $args = array() ) {
|
||||||
$class = '';
|
$class = '';
|
||||||
if ( is_front_page() && !is_paged() )
|
if ( is_front_page() && !is_paged() )
|
||||||
$class = 'class="current_page_item"';
|
$class = 'class="current_page_item"';
|
||||||
$menu .= '<li ' . $class . '><a href="' . home_url() . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';
|
$menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '" title="' . esc_attr($text) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';
|
||||||
// If the front page is a page, add it to the exclude list
|
// If the front page is a page, add it to the exclude list
|
||||||
if (get_option('show_on_front') == 'page') {
|
if (get_option('show_on_front') == 'page') {
|
||||||
if ( !empty( $list_args['exclude'] ) ) {
|
if ( !empty( $list_args['exclude'] ) ) {
|
||||||
|
|
Loading…
Reference in New Issue