mirror of
https://github.com/WordPress/WordPress.git
synced 2024-06-22 21:04:57 +02:00
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:
parent
8338d3dff7
commit
e838ab315d
|
@ -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…
Reference in New Issue
Block a user