WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/20/2015 02:03:45 AM (6 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/twentythirteen/functions.php

    r31785 r31842  
    432432        // or get the URL of the first image attachment.
    433433        else
    434             $next_attachment_url = get_attachment_link( current( $attachment_ids ) );
     434            $next_attachment_url = get_attachment_link( reset( $attachment_ids ) );
    435435    }
    436436
Note: See TracChangeset for help on using the changeset viewer.