[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 05:25:08 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 |
-------------------------------+------------------------------
Comment (by sethmatics):
If you used the above code on "localhost" then the expected output would
be "http://localhost/wp-content/themes/twentyeleven". as the html header
should have "host: localhost" as one of its parameters (unless I just
don't know your configuration).
Maybe a better test would be to put use:
define('WP_CONTENT_URL', 'http://google.com/wp-content');
Obviously the stylesheet would fail to load if the constant loads up
correctly. You can also test using if(defined('WP_CONTENT_URL'))
die('WP_CONTENT_URL is already defined').
Maybe I'm just missing something but I spent about 5 hours trying to get
it to work today when I used the above if statement only to find out it
was already defined... making it impossible to define again.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17789#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list