WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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:

Description

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

Change History (4)

comment:1 johnbillion4 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.

comment:2 nacin4 years ago

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

comment:3 nacin4 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.

comment:4 nacin4 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.