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

WordPress Trac noreply at wordpress.org
Tue Dec 22 10:28:37 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           |  Resolution:
 Keywords:  https has-patch  |     Focuses:
-----------------------------+------------------------------
Changes (by johnbillion):

 * keywords:  https needs-patch => https has-patch


Comment:

 [attachment:35196.diff] is where I'm going with this.
 `data_scheme_matrix()` defines a matrix of information about which
 functions should return a URL with an `https` scheme under which
 circumstances. It's incomplete, and there are many failures, particularly
 due to the fact that `wp_upload_dir()` is not testable due to its use of
 the `WP_CONTENT_URL` constant.

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


More information about the wp-trac mailing list