Make WordPress Core


Ignore:
Timestamp:
02/23/2012 02:42:01 PM (13 years ago)
Author:
nacin
Message:

Preserve keys when splitting themes up for pagination. props Utkarsh. fixes #15306.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-themes-list-table.php

    r19887 r19980  
    5959        $start = ( $page - 1 ) * $per_page;
    6060
    61         $this->items = array_slice( $themes, $start, $per_page );
     61        $this->items = array_slice( $themes, $start, $per_page, true );
    6262
    6363        $this->set_pagination_args( array(
Note: See TracChangeset for help on using the changeset viewer.