Make WordPress Core


Ignore:
Timestamp:
06/07/2011 09:28:56 PM (14 years ago)
Author:
iandstewart
Message:

Twenty Eleven: miscellaneous bug fixes and improvements

  • Only style images uploaded to the WordPress media library with border styles (and not placeholder images for content added by plugins)
  • Prevent content added by plugins and long custom excerpts from overflowing the featured post slider
  • Make sure small thumbnails will never appear in the Custom Header area
  • Better indicate the current featured post with custom link color and cursor
  • Add a class for text-only featured posts
  • Style improvements for small screens
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/header.php

    r18117 r18181  
    8787                    if ( is_singular() &&
    8888                            has_post_thumbnail( $post->ID ) &&
    89                             ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
     89                            ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
    9090                            $image[1] >= HEADER_IMAGE_WIDTH ) :
    9191                        // Houston, we have a new header image!
Note: See TracChangeset for help on using the changeset viewer.