WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17789, comment 2


Ignore:
Timestamp:
06/14/2011 05:26:05 AM (9 years ago)
Author:
sethmatics
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17789, comment 2

    initial v1  
    22
    33Maybe a better test would be to put use:
     4{{{
    45define('WP_CONTENT_URL', 'http://google.com/wp-content');
     6}}}
    57
    6 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').
     8Obviously the stylesheet would fail to load if the constant loads up correctly. You can also test using
     9{{{
     10if(defined('WP_CONTENT_URL')) die('WP_CONTENT_URL is already defined');
     11}}}
    712
    813Maybe 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.