- Timestamp:
- 07/09/2016 03:10:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/functions.php
r37040 r38026 422 422 // If there is more than 1 attachment in a gallery... 423 423 if ( count( $attachment_ids ) > 1 ) { 424 foreach ( $attachment_ids as $ attachment_id ) {424 foreach ( $attachment_ids as $idx => $attachment_id ) { 425 425 if ( $attachment_id == $post->ID ) { 426 $next_id = current( $attachment_ids );426 $next_id = $attachment_ids[ ( $idx + 1 ) % count( $attachment_ids ) ]; 427 427 break; 428 428 }
Note: See TracChangeset
for help on using the changeset viewer.