Changeset 31842
- Timestamp:
- 03/20/2015 02:03:45 AM (10 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/content-gallery.php
r31453 r31842 37 37 if ( $images ) : 38 38 $total_images = count( $images ); 39 $image = current( $images );39 $image = reset( $images ); 40 40 ?> 41 41 <figure class="gallery-thumb"> -
trunk/src/wp-content/themes/twentyfourteen/functions.php
r31784 r31842 331 331 // or get the URL of the first image attachment. 332 332 else { 333 $next_attachment_url = get_attachment_link( current( $attachment_ids ) );333 $next_attachment_url = get_attachment_link( reset( $attachment_ids ) ); 334 334 } 335 335 } -
trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php
r31453 r31842 150 150 $post_thumbnail = get_the_post_thumbnail(); 151 151 elseif ( $total_images > 0 ) : 152 $image = current( $images );152 $image = reset( $images ); 153 153 $post_thumbnail = wp_get_attachment_image( $image, 'post-thumbnail' ); 154 154 endif; -
trunk/src/wp-content/themes/twentyten/loop.php
r31453 r31842 76 76 if ( $images ) : 77 77 $total_images = count( $images ); 78 $image = current( $images );78 $image = reset( $images ); 79 79 ?> 80 80 <div class="gallery-thumb"> -
trunk/src/wp-content/themes/twentythirteen/functions.php
r31785 r31842 432 432 // or get the URL of the first image attachment. 433 433 else 434 $next_attachment_url = get_attachment_link( current( $attachment_ids ) );434 $next_attachment_url = get_attachment_link( reset( $attachment_ids ) ); 435 435 } 436 436
Note: See TracChangeset
for help on using the changeset viewer.