Changeset 48152
- Timestamp:
- 06/23/2020 11:32:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r48126 r48152 2201 2201 */ 2202 2202 function _media_states( $post ) { 2203 static $header_images; 2204 2203 2205 $media_states = array(); 2204 2206 $stylesheet = get_option( 'stylesheet' ); … … 2208 2210 2209 2211 if ( is_random_header_image() ) { 2210 $header_images = wp_list_pluck( get_uploaded_header_images(), 'attachment_id' ); 2212 if ( ! isset( $header_images ) ) { 2213 $header_images = wp_list_pluck( get_uploaded_header_images(), 'attachment_id' ); 2214 } 2211 2215 2212 2216 if ( $meta_header === $stylesheet && in_array( $post->ID, $header_images, true ) ) {
Note: See TracChangeset
for help on using the changeset viewer.