Add trailing slash to some home_url() calls. props zeo, fixes #13245.
git-svn-id: https://develop.svn.wordpress.org/trunk@14443 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9c37369cd5
commit
84578d128b
@ -140,7 +140,7 @@ class Custom_Background {
|
||||
<h2><?php _e('Custom Background'); ?></h2>
|
||||
<?php if ( !empty($this->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>
|
||||
<?php }
|
||||
|
||||
|
@ -373,7 +373,7 @@ class Custom_Image_Header {
|
||||
<?php
|
||||
if ( isset($_GET['updated']) && $_GET['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>
|
||||
<?php }
|
||||
|
||||
|
@ -54,7 +54,7 @@ if ( is_multisite() && current_user_can('edit_themes') ) {
|
||||
if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) ) { ?>
|
||||
<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
|
||||
} else { ?>
|
||||
<div id="message2" class="updated"><p><?php printf( __('New theme activated. <a href="%s">Visit site</a>'), home_url( '/ ' ) ); ?></p></div><?php
|
||||
<div id="message2" class="updated"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php
|
||||
}
|
||||
elseif ( isset($_GET['deleted']) ) : ?>
|
||||
<div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div>
|
||||
|
@ -838,7 +838,7 @@ function wp_page_menu( $args = array() ) {
|
||||
$class = '';
|
||||
if ( is_front_page() && !is_paged() )
|
||||
$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 (get_option('show_on_front') == 'page') {
|
||||
if ( !empty( $list_args['exclude'] ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user