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

WordPress Trac noreply at wordpress.org
Wed Oct 11 10:33:50 UTC 2017


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

 * keywords:  needs-patch WP_SITEURL constants => WP_SITEURL constants has-
     patch


Comment:

 I added tests like following.


 {{{
 /**
  * @runInSeparateProcess
  * @preserveGlobalState disabled
  */
 function test_wp_siteurl_constant() {
         define( 'WP_SITEURL', 'https://example.com' );
         $this->assertEquals( WP_SITEURL, site_url() );
 }
 }}}

 Then this test filed.

 {{{
 1) Tests_URL::test_wp_siteurl_constant
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'https://example.com'
 +'http://example.com'
 }}}

 Is this intentional?

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


More information about the wp-trac mailing list