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

see #31259, #15459.

git-svn-id: https://develop.svn.wordpress.org/trunk@31841 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-03-20 01:56:10 +00:00
parent 56029d4452
commit 850e6b2278

View File

@ -553,7 +553,7 @@ class WP_Posts_List_Table extends WP_List_Table {
_prime_post_caches( $ids );
if ( ! isset( $GLOBALS['post'] ) ) {
$GLOBALS['post'] = array_shift( $ids );
$GLOBALS['post'] = reset( $ids );
}
foreach ( $to_display as $page_id => $level ) {