Make WordPress Core


Ignore:
Timestamp:
07/17/2018 04:03:59 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Enable pagination screen options for privacy requests list tables.

Props birgire, pbiron.
Fixes #44025.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r43478 r43486  
    10061006}
    10071007
     1008/**
     1009 * Add options for the privacy requests screens.
     1010 *
     1011 * @since 4.9.8
     1012 * @access private
     1013 */
     1014function _wp_privacy_requests_screen_options() {
     1015    $args = array(
     1016        'option'  => str_replace( 'tools_page_', '', get_current_screen()->id ) . '_requests_per_page',
     1017    );
     1018    add_screen_option( 'per_page', $args );
     1019}
     1020
    10081021// TODO: move the following classes in new files.
    10091022if ( ! class_exists( 'WP_List_Table' ) ) {
     
    12231236
    12241237        $this->items    = array();
    1225         $posts_per_page = 20;
     1238        $posts_per_page = $this->get_items_per_page( $this->request_type . '_requests_per_page' );
    12261239        $args           = array(
    12271240            'post_type'      => $this->post_type,
Note: See TracChangeset for help on using the changeset viewer.