WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #52886, comment 4


Ignore:
Timestamp:
04/28/2021 10:03:30 PM (5 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52886, comment 4

    initial v1  
    11> The usage could then be:
    2 
    3 {{{
    4 esc_url( $url, null, 'display', 'https://' );
    5 }}}
     2>
     3> {{{
     4> esc_url( $url, null, 'display', 'https://' );
     5> }}}
    66
    77Looking at this again, I wonder if it's straightforward enough in practice, as it would require passing four parameters to every `esc_url()` call that might be missing the protocol and should default to `https://`. If the site is known to use `https://`, that seems redundant.