Fix theme pagination. See #14579

git-svn-id: https://develop.svn.wordpress.org/trunk@15577 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-09-05 19:26:01 +00:00
parent 9115c76b53
commit 5339a2f2f4
1 changed files with 2 additions and 2 deletions

View File

@ -3565,9 +3565,9 @@ class WP_Themes_Table extends WP_List_Table {
uksort( $themes, "strnatcasecmp" );
$per_page = 15;
$page = $this->get_pagenum( 'pagenum' );
$page = $this->get_pagenum();
$start = $offset = ( $page - 1 ) * $per_page;
$start = ( $page - 1 ) * $per_page;
$this->items = array_slice( $themes, $start, $per_page );