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