Eliminate use of extract() in WP_List_Table::display(). The method only needs to read singular from $this->_args. Extraction is unnecessary.

See #22400.

Built from https://develop.svn.wordpress.org/trunk@28386


git-svn-id: http://core.svn.wordpress.org/trunk@28214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-13 05:08:13 +00:00
parent f617b8669a
commit 08d73b9e23

View File

@ -760,7 +760,7 @@ class WP_List_Table {
* @access public
*/
function display() {
extract( $this->_args );
$singular = $this->_args['singular'];
$this->display_tablenav( 'top' );
@ -778,7 +778,10 @@ class WP_List_Table {
</tr>
</tfoot>
<tbody id="the-list"<?php if ( $singular ) echo " data-wp-lists='list:$singular'"; ?>>
<tbody id="the-list"<?php
if ( $singular ) {
echo " data-wp-lists='list:$singular'";
} ?>>
<?php $this->display_rows_or_placeholder(); ?>
</tbody>
</table>