Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#13191 closed defect (bug) (fixed)

admin_url does not respect WP_SITEURL

Reported by: Dachande663 Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Multisite Keywords:
Focuses: Cc:


Defining WP_SITEURL in wp-config.php has no effect on the URL provided by admin_url().

Change History (4)

#1 @johnbillion
11 years ago

  • Milestone Unassigned deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Tested 2.9.2 and trunk at r14511 and it works as expected.

#2 @nacin
11 years ago

  • Milestone set to 3.0
  • Resolution worksforme deleted
  • Status changed from closed to reopened

#3 @nacin
11 years ago

  • Component changed from General to Multisite

Okay, it looks like on a multisite blog, get_blogaddress_by_id will not respect WP_SITEURL and WP_HOME, as to enforce those, we simply filter get_option. Thus, on multisite for a different blog, we don't necessarily return the correct URL.

That said, the ticket is otherwise invalid.

#4 @nacin
11 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [14517]) Don't use WP_SITEURL and WP_HOME in multisite. fixes #13191.

Note: See TracTickets for help on using tickets.