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

WordPress Trac noreply at wordpress.org
Tue Jul 13 06:11:29 UTC 2021


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

 * status:  reopened => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 This ticket was discussed in
 [https://wordpress.slack.com/archives/C02RQBWTW/p1626155123469200 a triage
 session today].

 Consensus was that the opinion given in
 [https://core.trac.wordpress.org/ticket/11159#comment:3] is still valid.

 @miyauchi, I agree that the behavior is a bit confusing, but looking at
 the docs for `site_url`
 (https://developer.wordpress.org/reference/functions/site_url/), my
 understanding is that this is intentional.

 Thanks so much for the tests!

 I think the behavior is covered by the tests in
 https://github.com/WordPress/wordpress-
 develop/blob/master/tests/phpunit/tests/url.php, but if you think
 something is missed there, we can discuss adding additional tests to be
 sure everything is covered!

 Given the above, I'm going to close this ticket again.
 As always, feel free to comment back to continue discussion if needed, or
 this seems inappropriate.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/11159#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list