[wp-trac] [WordPress Trac] #39230: esc_url test if target url is available in https and dynamically updates the scheme.

WordPress Trac noreply at wordpress.org
Sat Dec 10 22:28:04 UTC 2016


#39230: esc_url test if target url is available in https and dynamically updates
the scheme.
-----------------------------+-----------------------------
 Reporter:  marksabbath      |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Formatting       |    Version:  4.7
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 While using esc_url, if a scheme isn't provided, it will hardcode
 "http://". My suggestion would be checking if the esc_url target is
 accessible via https (check with wp_remote_get) and if it is successful,
 add the https scheme instead of using only http.

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


More information about the wp-trac mailing list