From 4a197c45a2ed34fb8638dfd5bb6ac167cad923b3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 5 Apr 2014 12:44:19 +0000 Subject: [PATCH] Avoid an undefined index notice in wp_http_validate_url(). props jesin. fixes #27684. git-svn-id: https://develop.svn.wordpress.org/trunk@27953 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/http.php b/src/wp-includes/http.php index 0b4b109d9f..57746ff802 100644 --- a/src/wp-includes/http.php +++ b/src/wp-includes/http.php @@ -510,7 +510,7 @@ function wp_http_validate_url( $url ) { if ( 80 === $port || 443 === $port || 8080 === $port ) return $url; - if ( $parsed_home && $same_host && $parsed_home['port'] === $port ) + if ( $parsed_home && $same_host && isset( $parsed_home['port'] ) && $parsed_home['port'] === $port ) return $url; return false;