Make WordPress Core

Changeset 31841


Ignore:
Timestamp:
03/20/2015 01:56:10 AM (11 years ago)
Author:
SergeyBiryukov
Message:

After [31730], replace one more instance of array_shift() with reset() for better performance.

see #31259, #15459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r31828 r31841  
    554554
    555555                if ( ! isset( $GLOBALS['post'] ) ) {
    556                         $GLOBALS['post'] = array_shift( $ids );
     556                        $GLOBALS['post'] = reset( $ids );
    557557                }
    558558
Note: See TracChangeset for help on using the changeset viewer.