Make WordPress Core

Changeset 14443


Ignore:
Timestamp:
05/04/2010 05:13:11 PM (14 years ago)
Author:
nacin
Message:

Add trailing slash to some home_url() calls. props zeo, fixes #13245.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r14404 r14443  
    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 }
  • trunk/wp-admin/custom-header.php

    r14315 r14443  
    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 }
  • trunk/wp-admin/themes.php

    r14425 r14443  
    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']) ) : ?>
  • trunk/wp-includes/post-template.php

    r14360 r14443  
    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') {
Note: See TracChangeset for help on using the changeset viewer.