Ticket #52458: esc_url_type_safety.patch
File esc_url_type_safety.patch, 425 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/formatting.php
diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php index b716c6bc1f..a978811151 100644
function esc_sql( $data ) { 4308 4308 function esc_url( $url, $protocols = null, $_context = 'display' ) { 4309 4309 $original_url = $url; 4310 4310 4311 if ( '' === $url ) {4311 if ( '' === $url || "string" !== gettype( $url ) ) { 4312 4312 return $url; 4313 4313 } 4314 4314