From e838ab315dac3263f98d4ab90cdf0d850b897d7f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 20 Mar 2015 01:57:27 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-posts-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 84a163ed4f..c9c58289c3 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -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 ) {