WordPress.org

Make WordPress Core

Ticket #14135: 14135.6.diff

File 14135.6.diff, 681 bytes (added by sorich87, 7 years ago)

Fixes consistency of 'edit_posts_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
    18971900        $return = "<div class='screen-options'>\n";
    18981901        if ( !empty($per_page_label) )
    18991902                $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";