diff --git a/lib/class-wp-rest-url-details-controller.php b/lib/class-wp-rest-url-details-controller.php index f0fbae54f54810..f73a9265ff8155 100644 --- a/lib/class-wp-rest-url-details-controller.php +++ b/lib/class-wp-rest-url-details-controller.php @@ -280,7 +280,7 @@ private function get_icon( $html, $url ) { // If the icon is a data URL, return it. $parsed_icon = parse_url( $icon ); - if ( 'data' === $parsed_icon['scheme'] ) { + if ( isset( $parsed_icon['schema'] ) && 'data' === $parsed_icon['scheme'] ) { return $icon; }