[wp-trac] [WordPress Trac] #24740: get_option does not respect WP_HOME, WP_SITEURL
WordPress Trac
noreply at wordpress.org
Sat Jan 24 14:03:31 UTC 2015
#24740: get_option does not respect WP_HOME, WP_SITEURL
--------------------------------+------------------------------
Reporter: daveagp | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 3.5.2
Severity: normal | Resolution:
Keywords: has-patch close | Focuses:
--------------------------------+------------------------------
Comment (by anubisthejackle):
Replying to [comment:4 SergeyBiryukov]:
> Replying to [comment:3 anubisthejackle]:
> > * Take a live site and copy to localhost
> > * Define WP_SITEURL in wp-config.php
> > * Without logging in, visit /wp-admin
>
> You should define WP_HOME as well.
I just checked my code to verify, and found that we are:
{{{
define('WP_SITEURL', 'http://site.localhost/');
define('WP_HOME', 'http://site.localhost/');
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24740#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list