diff --git src/wp-includes/theme.php src/wp-includes/theme.php
index 1b372da..498a989 100644
|
|
function get_uploaded_header_images() { |
1180 | 1180 | foreach ( (array) $headers as $header ) { |
1181 | 1181 | $url = esc_url_raw( wp_get_attachment_url( $header->ID ) ); |
1182 | 1182 | $header_data = wp_get_attachment_metadata( $header->ID ); |
| 1183 | $alt = get_post_meta( $header->ID, '_wp_attachment_image_alt', true ); |
1183 | 1184 | $header_index = basename($url); |
1184 | 1185 | $header_images[$header_index] = array(); |
1185 | 1186 | $header_images[$header_index]['attachment_id'] = $header->ID; |
1186 | 1187 | $header_images[$header_index]['url'] = $url; |
| 1188 | $header_images[$header_index]['alt'] = $alt; |
1187 | 1189 | $header_images[$header_index]['thumbnail_url'] = $url; |
1188 | 1190 | if ( isset( $header_data['width'] ) ) |
1189 | 1191 | $header_images[$header_index]['width'] = $header_data['width']; |