Preserve keys when splitting themes up for pagination. props Utkarsh. fixes #15306.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-02-23 14:42:01 +00:00
parent 097be218c8
commit 013b783a05
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class WP_Themes_List_Table extends WP_List_Table {
$start = ( $page - 1 ) * $per_page;
$this->items = array_slice( $themes, $start, $per_page );
$this->items = array_slice( $themes, $start, $per_page, true );
$this->set_pagination_args( array(
'total_items' => count( $themes ),