Making WordPress.org


Ignore:
Timestamp:
10/20/2015 09:47:41 AM (9 years ago)
Author:
ocean90
Message:

Rosetta Roles: Add a 'per_page' screen option for the list table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/class-translation-editors-list-table.php

    r1792 r2001  
    6767     */
    6868    public function prepare_items() {
    69         $search = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';
    70         $per_page = 10;
    71         $paged = $this->get_pagenum();
     69        $search =   isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';
     70        $per_page = $this->get_items_per_page( 'translation_editors_per_page', 10 );
     71        $paged =    $this->get_pagenum();
    7272
    7373        $args = array(
Note: See TracChangeset for help on using the changeset viewer.