Changeset 27947 for trunk/src/wp-admin/custom-header.php
- Timestamp:
- 04/04/2014 03:48:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/custom-header.php
r27849 r27947 1273 1273 $header_images = get_uploaded_header_images(); 1274 1274 $timestamp_key = '_wp_attachment_custom_header_last_used_' . get_stylesheet(); 1275 $alt_text_key = '_wp_attachment_image_alt'; 1275 1276 1276 1277 foreach ( $header_images as &$header_image ) { 1277 $header_image['timestamp'] = get_post_meta( $header_image['attachment_id'], $timestamp_key, true ); 1278 $header_meta = get_post_meta( $header_image['attachment_id'] ); 1279 $header_image['timestamp'] = isset( $header_meta[ $timestamp_key ] ) ? $header_meta[ $timestamp_key ] : ''; 1280 $header_image['alt_text'] = isset( $header_meta[ $alt_text_key ] ) ? $header_meta[ $alt_text_key ] : ''; 1278 1281 } 1279 1282
Note: See TracChangeset
for help on using the changeset viewer.