[wp-trac] [WordPress Trac] #17789: WP_CONTENT_URL Defined before wp-config.php causes incorrect links when defining WP_SITEURL
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 14 03:01:14 UTC 2011
#17789: WP_CONTENT_URL Defined before wp-config.php causes incorrect links when
defining WP_SITEURL
-------------------------------+------------------------------
Reporter: sethmatics | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by dd32):
* keywords: => reporter-feedback
Comment:
> the constant WP_CONTENT_URL is defined before loading the wp-config file
so the last define fails.
Come again? The constant can't be defined before wp-config.php is loaded..
Since it needs the details from the database definitions within the wp-
config.php file in order to determine them.
The only way it could be defined, would be if you're placing the defines
after wp-config.php includes wp-settings.php.
Just tested by placing the code you've suggested into a wp-config.php for
a site at http://localhost/, the output of
{{{get_stylesheet_directory_uri()}}} is {{{http://dd32-laptop/wp-
content/themes/twentyeleven}}} as expected.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17789#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list