Make WordPress Core

Ticket #21572: class-wp-posts-list-table.php

File class-wp-posts-list-table.php, 578 bytes (added by cojennin, 12 years ago)

removed function argument and empty check

Line 
1Index: wp-admin/includes/class-wp-posts-list-table.php
2===================================================================
3--- wp-admin/includes/class-wp-posts-list-table.php     (revision 21501)
4+++ wp-admin/includes/class-wp-posts-list-table.php     (working copy)
5@@ -300,11 +300,10 @@
6                );
7        }
8 
9-       function display_rows( $posts = array(), $level = 0 ) {
10+       function display_rows(  $level = 0 ) {
11                global $wp_query, $post_type_object, $per_page;
12 
13-               if ( empty( $posts ) )
14-                       $posts = $wp_query->posts;
15+               $posts = $wp_query->posts;
16 
17                add_filter( 'the_title', 'esc_html' );
18