Ticket #50585: 50585.3.diff
| File 50585.3.diff, 1.2 KB (added by , 5 years ago) |
|---|
-
src/wp-includes/formatting.php
4300 4300 * @param string[] $protocols Optional. An array of acceptable protocols. 4301 4301 * Defaults to return value of wp_allowed_protocols(). 4302 4302 * @param string $_context Private. Use esc_url_raw() for database usage. 4303 * @return string The cleaned URL after the {@see 'clean_url'} filter is applied. 4303 * @return string The cleaned URL after the {@see 'clean_url'} filter is applied. Returns an empty string if an invalid $protocol is found in the $url. 4304 4304 */ 4305 4305 function esc_url( $url, $protocols = null, $_context = 'display' ) { 4306 4306 $original_url = $url; … … 4408 4408 * @param string $url The URL to be cleaned. 4409 4409 * @param string[] $protocols Optional. An array of acceptable protocols. 4410 4410 * Defaults to return value of wp_allowed_protocols(). 4411 * @return string The cleaned URL .4411 * @return string The cleaned URL after {@see 'esc_url()'} is run with the 'db' context. 4412 4412 */ 4413 4413 function esc_url_raw( $url, $protocols = null ) { 4414 4414 return esc_url( $url, $protocols, 'db' );