WordPress.org

Make WordPress Core

Ticket #14135: 14135.5.diff

File 14135.5.diff, 795 bytes (added by sorich87, 7 years ago)

Refreshed patch, with edit_pages_per_page

  • wp-admin/includes/template.php

     
    18941894        else
    18951895                $per_page = apply_filters( $option, $per_page );
    18961896
     1897        if( isset( $screen->post_type ) ) {
     1898                $per_page = apply_filters( 'edit_posts_per_page', $per_page, $screen->post_type );
     1899
     1900                if( 'page' == $screen->post_type )
     1901                        $per_page = apply_filters( 'edit_pages_per_page', $per_page );
     1902        }
     1903
    18971904        $return = "<div class='screen-options'>\n";
    18981905        if ( !empty($per_page_label) )
    18991906                $return .= "<input type='text' class='screen-per-page' name='wp_screen_options[value]' id='$option' maxlength='3' value='$per_page' /> <label for='$option'>$per_page_label</label>\n";