Ticket #52516: 52516.patch
File 52516.patch, 2.1 KB (added by , 4 years ago) |
---|
-
src/wp-content/themes/twentyeleven/header.php
103 103 * The header image. 104 104 * Check if this is a post or page, if it has a thumbnail, and if it's a big one 105 105 */ 106 $image = false; 106 107 if ( is_singular() && has_post_thumbnail( $post->ID ) ) { 107 108 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ); 108 if ( $image && $image[1] >= $header_image_width ) {109 // Houston, we have a new header image!110 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );111 }109 } 110 if ( $image && $image[1] >= $header_image_width ) { 111 // Houston, we have a new header image! 112 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); 112 113 } else { 113 114 // Compatibility with versions of WordPress prior to 3.4. 114 115 if ( function_exists( 'get_custom_header' ) ) { -
src/wp-content/themes/twentyten/header.php
87 87 } 88 88 89 89 // Check if this is a post or page, if it has a thumbnail, and if it's a big one. 90 $image = false; 90 91 if ( is_singular() && has_post_thumbnail( $post->ID ) ) { 91 92 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ); 92 if ( $image && $image[1] >= $header_image_width ) {93 // Houston, we have a new header image!94 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );95 }93 } 94 if ( $image && $image[1] >= $header_image_width ) { 95 // Houston, we have a new header image! 96 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); 96 97 } else { 97 98 // Compatibility with versions of WordPress prior to 3.4. 98 99 if ( function_exists( 'get_custom_header' ) ) {