Don't pass optional argument with its default value. props hakre, fixes #15450.
git-svn-id: https://develop.svn.wordpress.org/trunk@16434 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
673625a1c2
commit
81200f91c7
@ -72,7 +72,7 @@
|
|||||||
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
|
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
|
||||||
$image[1] >= HEADER_IMAGE_WIDTH ) :
|
$image[1] >= HEADER_IMAGE_WIDTH ) :
|
||||||
// Houston, we have a new header image!
|
// Houston, we have a new header image!
|
||||||
echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
|
echo get_the_post_thumbnail( $post->ID );
|
||||||
elseif ( get_header_image() ) : ?>
|
elseif ( get_header_image() ) : ?>
|
||||||
<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
|
<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user