From f617b8669a611f2b00726590c4388cc8dc8397a7 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 13 May 2014 05:04:14 +0000 Subject: [PATCH] Eliminate use of `extract()` in `WP_Post_Comments_List_Table::display()`. The method only needs to read `singular` from `$this->_args`. Extraction is unnecessary. Eliminate use of `extract()` in `WP_Comments_List_Table::display()`. The method uses no variables. Extraction can be completely removed. See #22400. Built from https://develop.svn.wordpress.org/trunk@28385 git-svn-id: http://core.svn.wordpress.org/trunk@28213 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-comments-list-table.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index c489efee7b..ccfa0994c8 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -309,8 +309,6 @@ class WP_Comments_List_Table extends WP_List_Table { } function display() { - extract( $this->_args ); - wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); $this->display_tablenav( 'top' ); @@ -598,13 +596,18 @@ class WP_Post_Comments_List_Table extends WP_Comments_List_Table { } function display( $output_empty = false ) { - extract( $this->_args ); + $singular = $this->_args['singular']; wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); ?> - > - display_rows_or_placeholder(); ?> + > + display_rows_or_placeholder(); + } ?>