Make WordPress Core

Ticket #48353: 48353.patch

File 48353.patch, 1006 bytes (added by amolv, 5 years ago)
  • src/wp-includes/formatting.php

     
    42394239 * @since 2.8.0
    42404240 *
    42414241 * @param string $url       The URL to be cleaned.
    4242  * @param array $protocols Optional. An array of acceptable protocols.
     4242 * @param string[] $protocols Optional. An array of acceptable protocols.
    42434243 *                          Defaults to return value of wp_allowed_protocols()
    42444244 * @param string $_context  Private. Use esc_url_raw() for database usage.
    42454245 * @return string The cleaned $url after the {@see 'clean_url'} filter is applied.
     
    43474347 * @since 2.8.0
    43484348 *
    43494349 * @param string $url       The URL to be cleaned.
    4350  * @param array $protocols An array of acceptable protocols.
     4350 * @param string[] $protocols An array of acceptable protocols.
    43514351 * @return string The cleaned URL.
    43524352 */
    43534353function esc_url_raw( $url, $protocols = null ) {