Opened 15 months ago

Last modified 15 months ago

#20082 new defect (bug)

Admin bar links to wrong site in multisite (subdomain) network — at Initial Version

Reported by: niklasbr Owned by:
Priority: normal Milestone: Awaiting Review
Component: Administration Version: 3.3.1
Severity: major Keywords:
Cc:

Description

The code
` foreach ( $actions as $link => $action ) {

list( $title, $id ) = $action;

$wp_admin_bar->add_menu( array(

'parent' => 'new-content',
'id' => $id,
'title' => $title,
'href' => admin_url( $link )

) );

}

`
generates the wrong URL, whenever I visit a site that has the URL subsite.subsite.example.com but generates the correct URL if the URL is of the pattern subsite.example.com. On subsite.subsite.example.com the admin bar will generate links to subsite.example.com.

Change History (1)

Wrong URL generated

Note: See TracTickets for help on using tickets.