From 745f24b2d412151fa167b332b41f932bde630a50 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 6 Mar 2014 15:54:17 +0000 Subject: [PATCH] Use `wp_get_attachment_url()` instead of the GUID when getting header image URLs. Fixes #27222. Props Kopepasah. git-svn-id: https://develop.svn.wordpress.org/trunk@27434 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 054de58fb9..83ff222db9 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -1137,7 +1137,7 @@ function get_uploaded_header_images() { return array(); foreach ( (array) $headers as $header ) { - $url = esc_url_raw( $header->guid ); + $url = esc_url_raw( wp_get_attachment_url( $header->ID ) ); $header_data = wp_get_attachment_metadata( $header->ID ); $header_index = basename($url); $header_images[$header_index] = array();