Trailing slash for site url. Props SergeyBiryukov. fixes #19314
git-svn-id: https://develop.svn.wordpress.org/trunk@19373 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2304ad1b0e
commit
969799b63a
@ -224,7 +224,7 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) {
|
||||
$wp_admin_bar->add_menu( array(
|
||||
'id' => 'site-name',
|
||||
'title' => $title,
|
||||
'href' => is_admin() ? home_url() : admin_url(),
|
||||
'href' => is_admin() ? home_url( '/' ) : admin_url(),
|
||||
) );
|
||||
|
||||
// Create submenu items.
|
||||
@ -235,7 +235,7 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) {
|
||||
'parent' => 'site-name',
|
||||
'id' => 'view-site',
|
||||
'title' => __( 'Visit Site' ),
|
||||
'href' => home_url(),
|
||||
'href' => home_url( '/' ),
|
||||
) );
|
||||
|
||||
// We're on the front end, print a copy of the admin menu.
|
||||
@ -354,7 +354,7 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
|
||||
'parent' => $menu_id,
|
||||
'id' => $menu_id . '-v',
|
||||
'title' => __( 'Visit Site' ),
|
||||
'href' => get_home_url( $blog->userblog_id ),
|
||||
'href' => get_home_url( $blog->userblog_id, '/' ),
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user