Make WordPress Core


Ignore:
Timestamp:
03/20/2015 02:03:45 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Bundled themes: After [31453], replace current() with reset(), which is guaranteed to be the first item.

see #31259, #31260.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r31784 r31842  
    331331                // or get the URL of the first image attachment.
    332332                else {
    333                         $next_attachment_url = get_attachment_link( current( $attachment_ids ) );
     333                        $next_attachment_url = get_attachment_link( reset( $attachment_ids ) );
    334334                }
    335335        }
Note: See TracChangeset for help on using the changeset viewer.