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

see #31259, #15459.
Built from https://develop.svn.wordpress.org/trunk@31841


git-svn-id: http://core.svn.wordpress.org/trunk@31823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-03-20 01:57:27 +00:00
parent 8338d3dff7
commit e838ab315d

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 ) {