WordPress.org

Make WordPress Core

Ticket #14135: 14135.4.diff

File 14135.4.diff, 654 bytes (added by sorich87, 4 years ago)
  • wp-admin/includes/template.php

     
    18701870        else 
    18711871                $per_page = apply_filters( $option, $per_page ); 
    18721872 
     1873        if ( isset( $post_type ) ) 
     1874                $per_page = apply_filters( 'edit_posts_per_page', $per_page ); 
     1875 
    18731876        $return = "<div class='screen-options'>\n"; 
    18741877        if ( !empty($per_page_label) ) 
    18751878                $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";