[wp-trac] [WordPress Trac] #21572: Unnecessary function argument for display_rows

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 8 03:24:38 UTC 2012


#21572: Unnecessary function argument for display_rows
--------------------------+----------------------
 Reporter:  cojennin      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.5
Component:  General       |     Version:
 Severity:  trivial       |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------
Changes (by wonderboymusic):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Line 1368 of ajax-actions.php:

 {{{
 $wp_list_table = _get_list_table('WP_Posts_List_Table');
 }}}

 {{{$level}}} gets set, and then....

 Line 1382 of ajax-actions.php:

 {{{
 $wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ),
 $level );
 }}}

 Uses both arguments... so, the patch would break that...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21572#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list