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:
parent
56029d4452
commit
850e6b2278
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user