Make WordPress Core

Ticket #18785: 18785-default-rows.patch

File 18785-default-rows.patch, 1.5 KB (added by azaozz, 14 years ago)
  • wp-admin/includes/screen.php

     
    724724                                $per_page = $this->_options['per_page']['default'];
    725725                        else
    726726                                $per_page = 20;
    727                 }
    728727
    729                 if ( 'edit_comments_per_page' == $option ) {
    730                         $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
    731                         $per_page = apply_filters( 'comments_per_page', $per_page, $comment_status );
    732                 } elseif ( 'categories_per_page' == $option ) {
    733                         $per_page = apply_filters( 'edit_categories_per_page', $per_page );
    734                 } else {
    735                         $per_page = apply_filters( $option, $per_page );
    736                 }
     728                        if ( 'edit_comments_per_page' == $option ) {
     729                                $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
     730                                $per_page = apply_filters( 'comments_per_page', $per_page, $comment_status );
     731                        } elseif ( 'categories_per_page' == $option ) {
     732                                $per_page = apply_filters( 'edit_categories_per_page', $per_page );
     733                        } else {
     734                                $per_page = apply_filters( $option, $per_page );
     735                        }
    737736
    738                 // Back compat
    739                 if ( isset( $this->post_type ) )
    740                         $per_page = apply_filters( 'edit_posts_per_page', $per_page, $this->post_type );
    741 
     737                        // Back compat
     738                        if ( isset( $this->post_type ) )
     739                                $per_page = apply_filters( 'edit_posts_per_page', $per_page, $this->post_type );
     740                }
    742741                ?>
    743742                <h5><?php _ex('Show on screen', 'Screen Options') ?></h5>
    744743                <div class='screen-options'>