Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.