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

git-svn-id: https://develop.svn.wordpress.org/trunk@19980 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-02-23 14:42:01 +00:00
parent 082f9f9739
commit 7327a30867
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 ),