mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 00:31:28 +01:00
Fix strict warnings for WP_Plugins_List_Table::bulk_actions() and WP_Plugins_List_Table::single_row(). Props kurtpayne. fixes #22224
git-svn-id: http://core.svn.wordpress.org/trunk@22376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b10f343480
commit
44774b52ab
@ -765,7 +765,7 @@ class WP_List_Table {
|
||||
<div class="tablenav <?php echo esc_attr( $which ); ?>">
|
||||
|
||||
<div class="alignleft actions">
|
||||
<?php $this->bulk_actions( $which ); ?>
|
||||
<?php $this->bulk_actions(); ?>
|
||||
</div>
|
||||
<?php
|
||||
$this->extra_tablenav( $which );
|
||||
|
@ -252,13 +252,13 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
return $actions;
|
||||
}
|
||||
|
||||
function bulk_actions( $which ) {
|
||||
function bulk_actions() {
|
||||
global $status;
|
||||
|
||||
if ( in_array( $status, array( 'mustuse', 'dropins' ) ) )
|
||||
return;
|
||||
|
||||
parent::bulk_actions( $which );
|
||||
parent::bulk_actions();
|
||||
}
|
||||
|
||||
function extra_tablenav( $which ) {
|
||||
@ -293,12 +293,13 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
return;
|
||||
|
||||
foreach ( $this->items as $plugin_file => $plugin_data )
|
||||
$this->single_row( $plugin_file, $plugin_data );
|
||||
$this->single_row( array( $plugin_file, $plugin_data ) );
|
||||
}
|
||||
|
||||
function single_row( $plugin_file, $plugin_data ) {
|
||||
function single_row( $item ) {
|
||||
global $status, $page, $s, $totals;
|
||||
|
||||
list( $plugin_file, $plugin_data ) = $item;
|
||||
$context = $status;
|
||||
$screen = $this->screen;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user