mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
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:
parent
097be218c8
commit
013b783a05
@ -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
Block a user