WordPress.org

Make WordPress Core

Changeset 19373


Ignore:
Timestamp:
11/21/2011 02:53:42 PM (10 years ago)
Author:
ryan
Message:

Trailing slash for site url. Props SergeyBiryukov. fixes #19314

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r19328 r19373  
    225225        'id'    => 'site-name',
    226226        'title' => $title,
    227         'href'  => is_admin() ? home_url() : admin_url(),
     227        'href'  => is_admin() ? home_url( '/' ) : admin_url(),
    228228    ) );
    229229
     
    236236            'id'     => 'view-site',
    237237            'title'  => __( 'Visit Site' ),
    238             'href'   => home_url(),
     238            'href'   => home_url( '/' ),
    239239        ) );
    240240
     
    355355            'id'     => $menu_id . '-v',
    356356            'title'  => __( 'Visit Site' ),
    357             'href'   => get_home_url( $blog->userblog_id ),
     357            'href'   => get_home_url( $blog->userblog_id, '/' ),
    358358        ) );
    359359    }
Note: See TracChangeset for help on using the changeset viewer.