Changeset 31453
- Timestamp:
- 02/13/2015 05:51:22 PM (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
r25625 r31453 37 37 if ( $images ) : 38 38 $total_images = count( $images ); 39 $image = array_shift( $images );39 $image = current( $images ); 40 40 ?> 41 41 <figure class="gallery-thumb"> -
trunk/src/wp-content/themes/twentyfourteen/functions.php
r30866 r31453 331 331 // or get the URL of the first image attachment. 332 332 else { 333 $next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) );333 $next_attachment_url = get_attachment_link( current( $attachment_ids ) ); 334 334 } 335 335 } -
trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php
r31250 r31453 150 150 $post_thumbnail = get_the_post_thumbnail(); 151 151 elseif ( $total_images > 0 ) : 152 $image = array_shift( $images );152 $image = current( $images ); 153 153 $post_thumbnail = wp_get_attachment_image( $image, 'post-thumbnail' ); 154 154 endif; -
trunk/src/wp-content/themes/twentyten/loop.php
r31266 r31453 76 76 if ( $images ) : 77 77 $total_images = count( $images ); 78 $image = array_shift( $images );78 $image = current( $images ); 79 79 ?> 80 80 <div class="gallery-thumb"> -
trunk/src/wp-content/themes/twentythirteen/functions.php
r31260 r31453 432 432 // or get the URL of the first image attachment. 433 433 else 434 $next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) );434 $next_attachment_url = get_attachment_link( current( $attachment_ids ) ); 435 435 } 436 436
Note: See TracChangeset
for help on using the changeset viewer.