Ticket #31260: 31260.patch
File 31260.patch, 2.9 KB (added by , 10 years ago) |
---|
-
src/wp-content/themes/twentyeleven/content-gallery.php
36 36 $images = twentyeleven_get_gallery_images(); 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"> 42 42 <a href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $image, 'thumbnail' ); ?></a> -
src/wp-content/themes/twentyfourteen/functions.php
330 330 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 } 336 336 -
src/wp-content/themes/twentyfourteen/inc/widgets.php
149 149 if ( has_post_thumbnail() ) : 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; 155 155 -
src/wp-content/themes/twentyten/loop.php
75 75 $images = twentyten_get_gallery_images(); 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"> 81 81 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $image, 'thumbnail' ); ?></a> -
src/wp-content/themes/twentythirteen/functions.php
431 431 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 437 437 printf( '<a href="%1$s" title="%2$s" rel="attachment">%3$s</a>',