[wp-trac] [WordPress Trac] #35196: Unit tests for URL schemes

WordPress Trac noreply at wordpress.org
Tue Dec 22 09:15:12 UTC 2015


#35196: Unit tests for URL schemes
----------------------------+-------------------------------
 Reporter:  johnbillion     |      Owner:
     Type:  task (blessed)  |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:
 Severity:  normal          |   Keywords:  https needs-patch
  Focuses:                  |
----------------------------+-------------------------------
 In order to tackle various HTTPS related issues, it would be ideal to have
 test coverage for the schemes of URLs returned by the URL-generating
 functions under various conditions.

 For example, we know that `admin_url()` should always return a URL with an
 `https` scheme when `FORCE_SSL_ADMIN` is true. However the scheme in the
 URL returned by `home_url()` varies depending on the current request's
 scheme as well as the `home` option's scheme.

 We can test all combinations of schemes in the `home` and `siteurl`
 options, as well as the `force_ssl_admin()` setting, and test the schemes
 of URLs returned by various functions under various situations (admin vs.
 front end, and `is_ssl()` vs. not).

 Patch coming up soon.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35196>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list