WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/20/2015 02:03:45 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Bundled themes: After [31453], replace current() with reset(), which is guaranteed to be the first item.

see #31259, #31260.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php

    r31453 r31842  
    150150                                        $post_thumbnail = get_the_post_thumbnail();
    151151                                    elseif ( $total_images > 0 ) :
    152                                         $image          = current( $images );
     152                                        $image          = reset( $images );
    153153                                        $post_thumbnail = wp_get_attachment_image( $image, 'post-thumbnail' );
    154154                                    endif;
Note: See TracChangeset for help on using the changeset viewer.