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:
parent
082f9f9739
commit
7327a30867
|
@ -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 ),
|
||||
|
|
Loading…
Reference in New Issue