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:
parent
5a4285489f
commit
614929f25b
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue