Changeset 61463 for trunk/src/wp-includes/theme.php
- Timestamp:
- 01/10/2026 05:01:08 AM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r61457 r61463 1530 1530 $header_index = $header->ID; 1531 1531 1532 $header_images[ $header_index ] = array(); 1533 $header_images[ $header_index ]['attachment_id'] = $header->ID; 1534 $header_images[ $header_index ]['url'] = $url; 1535 $header_images[ $header_index ]['thumbnail_url'] = $url; 1536 $header_images[ $header_index ]['alt_text'] = get_post_meta( $header->ID, '_wp_attachment_image_alt', true ); 1537 1538 if ( isset( $header_data['attachment_parent'] ) ) { 1539 $header_images[ $header_index ]['attachment_parent'] = $header_data['attachment_parent']; 1540 } else { 1541 $header_images[ $header_index ]['attachment_parent'] = ''; 1542 } 1532 $header_images[ $header_index ] = array(); 1533 $header_images[ $header_index ]['attachment_id'] = $header->ID; 1534 $header_images[ $header_index ]['url'] = $url; 1535 $header_images[ $header_index ]['thumbnail_url'] = $url; 1536 $header_images[ $header_index ]['alt_text'] = get_post_meta( $header->ID, '_wp_attachment_image_alt', true ); 1537 $header_images[ $header_index ]['attachment_parent'] = $header_data['attachment_parent'] ?? ''; 1543 1538 1544 1539 if ( isset( $header_data['width'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.