WordPress.org

Support

Support » Requests and Feedback » Twenty eleven theme header, is this intentional?

Twenty eleven theme header, is this intentional?

  • has_post_thumbnail( $post->ID ) &&
    	( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
    	$image[1] >= HEADER_IMAGE_WIDTH ) :
    	// Houston, we have a new header image!

    OK, first let me preface this by saying I pretty much know jack poop about code! Just enough to break my site.

    But looking at this code for the custom header image out of twentyeleven, the commented portion references that the following will be SRC WIDTH HEIGHT

    However, the actual code repeats the width, so it is referencing SRC WIDTH WIDTH

    Is this a bug, or intentional?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Twenty eleven theme header, is this intentional?’ is closed to new replies.