Changeset 52085
- Timestamp:
- 11/09/2021 10:58:39 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/http.php
r52084 r52085 594 594 */ 595 595 $allowed_ports = apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 ), $host, $url ); 596 if ( i n_array( $port, $allowed_ports, true ) ) {596 if ( is_array( $allowed_ports ) && in_array( $port, $allowed_ports, true ) ) { 597 597 return $url; 598 598 }
Note: See TracChangeset
for help on using the changeset viewer.