Make WordPress Core

Ticket #44210: 44210.diff

File 44210.diff, 459 bytes (added by afragen, 7 years ago)
  • src/wp-includes/http.php

    diff --git src/wp-includes/http.php src/wp-includes/http.php
    index 2b153aa136..bd1afbbc2b 100644
    function wp_http_validate_url( $url ) { 
    596596                return $url;
    597597        }
    598598
     599        /**
     600         * Filter to allow for valid URLs from local servers.
     601         *
     602         * @since 4.9.x
     603         *
     604         * @return bool
     605         */
     606        if ( apply_filters( 'http_request_host_is_local', false ) ) {
     607                return $url;
     608        }
     609
    599610        return false;
    600611}
    601612