Make WordPress Core


Ignore:
Timestamp:
02/09/2012 05:20:26 PM (13 years ago)
Author:
ryan
Message:

Infinite scroll for themes.php and theme-install.php. Bump per page limit for themes.php to 999. Props helenyhou, DH-Shredder. see #19815

File:
1 edited

Legend:

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

    r19840 r19887  
    1212    var $search = array();
    1313    var $features = array();
     14   
     15    function __construct() {
     16        parent::__construct( array(
     17            'ajax' => true,
     18        ) );
     19    }
    1420
    1521    function ajax_user_can() {
     
    4854        uksort( $themes, "strnatcasecmp" );
    4955
    50         $per_page = 24;
     56        $per_page = 999;
    5157        $page = $this->get_pagenum();
    5258
     
    102108
    103109    function display() {
    104         // wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
     110        wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
    105111?>
    106112        <?php $this->tablenav( 'top' ); ?>
Note: See TracChangeset for help on using the changeset viewer.