[wp-trac] [WordPress Trac] #46673: Update esc_url function (default https).

WordPress Trac noreply at wordpress.org
Wed Jul 9 21:21:38 UTC 2025


#46673: Update esc_url function (default https).
--------------------------+------------------------
 Reporter:  aksl95        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Formatting    |     Version:
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by sabernhardt):

 * status:  reopened => closed
 * resolution:   => duplicate


Comment:

 Duplicate of #52886.

 I'm closing this as the duplicate because it already was closed, but the
 discussion should continue on #52866.

 > it's easy to break a link by setting its scheme to `https` when the site
 doesn't support HTTPS.

 I agree that `https://` hardcoded in the function could create broken
 links. However, the other ticket gives the example of social links, which
 should support HTTPS. I like the idea of using `$protocols`.

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


More information about the wp-trac mailing list