Make WordPress Core

Ticket #50585: 50585.diff

File 50585.diff, 829 bytes (added by stevenlinx, 6 years ago)
  • src/wp-includes/formatting.php

    diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
    index 45fb3c35b6..5b3f0b2266 100644
    a b function esc_url( $url, $protocols = null, $_context = 'display' ) { 
    44114411 * @param string   $url       The URL to be cleaned.
    44124412 * @param string[] $protocols Optional. An array of acceptable protocols.
    44134413 *                            Defaults to return value of wp_allowed_protocols().
    4414  * @return string The cleaned URL.
     4414 * @return string The cleaned $url after the 'clean_url' filter is applied. An empty string is returned if $url specifies a protocol other than those in $protocols, or if $url contains an empty string.
    44154415 */
    44164416function esc_url_raw( $url, $protocols = null ) {
    44174417        return esc_url( $url, $protocols, 'db' );