[wp-trac] [WordPress Trac] #11159: WP_SITEURL and bloginfo('siteurl') inconsistent, or WP_SITEURL should be defined

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 23 00:36:30 UTC 2010


#11159: WP_SITEURL and bloginfo('siteurl') inconsistent, or WP_SITEURL should be
defined
----------------------------------------------+-----------------------------
 Reporter:  anmari                            |        Owner:         
     Type:  defect (bug)                      |       Status:  closed 
 Priority:  normal                            |    Milestone:         
Component:  General                           |      Version:         
 Severity:  minor                             |   Resolution:  invalid
 Keywords:  needs-patch WP_SITEURL constants  |  
----------------------------------------------+-----------------------------
Changes (by nacin):

  * status:  new => closed
  * resolution:  => invalid
  * milestone:  Future Release =>


Comment:

 WP_SITEURL and WP_HOME are short-circuit constants. By default they should
 not be defined, there's no reason to define them. They should NOT be used
 directly.

 When defined, these trigger a filter on pre_option_home and
 pre_option_siteurl, to then force get_option() to return the constant's
 value.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11159#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list