[wp-trac] [WordPress Trac] #28487: Introduce a function to determine if the scheme of a URL is https

WordPress Trac noreply at wordpress.org
Sun Jul 27 18:03:46 UTC 2014


#28487: Introduce a function to determine if the scheme of a URL is https
-------------------------+-------------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Security     |     Version:
 Severity:  normal       |  Resolution:  maybelater
 Keywords:  has-patch    |     Focuses:
-------------------------+-------------------------

Comment (by ocean90):

 My main reason for the revert was the naming of the function. I agree to
 nacin with the proximity to `is_ssl()`. For that  28487.is_ssl.diff looks
 much better. Otherwise I think `has_url_scheme( $url, $scheme )` or
 `get_url_scheme( $url )`  would reduce the ambiguity with `is_ssl()` and
 aligns more with `set_url_scheme()`.

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


More information about the wp-trac mailing list