Fix theme pagination. See #14579

git-svn-id: http://svn.automattic.com/wordpress/trunk@15577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-09-05 19:26:01 +00:00
parent 5a4285489f
commit 614929f25b
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 );