Make WordPress Core

Ticket #50585: 50585.2.diff

File 50585.2.diff, 816 bytes (added by audrasjb, 5 years ago)

Small refresh against trunk

  • src/wp-includes/formatting.php

    diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
    index 1cd43ab17f..92adc5c865 100644
    a b function esc_url( $url, $protocols = null, $_context = 'display' ) { 
    44064406 * @param string   $url       The URL to be cleaned.
    44074407 * @param string[] $protocols Optional. An array of acceptable protocols.
    44084408 *                            Defaults to return value of wp_allowed_protocols().
    4409  * @return string The cleaned URL.
     4409 * @return string The URL after '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.
    44104410 */
    44114411function esc_url_raw( $url, $protocols = null ) {
    44124412        return esc_url( $url, $protocols, 'db' );