[wp-trac] [WordPress Trac] #24740: get_option does not respect WP_HOME, WP_SITEURL

WordPress Trac noreply at wordpress.org
Sat Jan 24 03:28:38 UTC 2015


#24740: get_option does not respect WP_HOME, WP_SITEURL
--------------------------------+-----------------------
 Reporter:  daveagp             |       Owner:
     Type:  enhancement         |      Status:  reopened
 Priority:  normal              |   Milestone:
Component:  Options, Meta APIs  |     Version:  3.5.2
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:
--------------------------------+-----------------------
Changes (by anubisthejackle):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 @nacin I'm getting a similar situation.

 To replicate:

 * Take a live site and copy to localhost
 * Define WP_SITEURL in wp-config.php
 * Without logging in, visit /wp-admin

 The redirect will be to [live site]/wp-login.php or the equivalent defined
 login page.

 I understand that most other places in the code WP_SITEURL (can't speak to
 WP_HOME) is handled properly, but this one gets me constantly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24740#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list