WordPress 4.4.2
[autoinstalls/wordpress.git] / wp-includes / http.php
index 8fa00e942fc140346b07304d34e68b07df13a084..9f254a15be296e81e4680cb7aea361a2863909a1 100644 (file)
@@ -536,7 +536,7 @@ function wp_http_validate_url( $url ) {
                }
                if ( $ip ) {
                        $parts = array_map( 'intval', explode( '.', $ip ) );
-                       if ( 127 === $parts[0] || 10 === $parts[0]
+                       if ( 127 === $parts[0] || 10 === $parts[0] || 0 === $parts[0]
                                || ( 172 === $parts[0] && 16 <= $parts[1] && 31 >= $parts[1] )
                                || ( 192 === $parts[0] && 168 === $parts[1] )
                        ) {