Make WordPress Core

Changeset 22376


Ignore:
Timestamp:
11/05/2012 06:29:20 PM (12 years ago)
Author:
ryan
Message:

Fix strict warnings for WP_Plugins_List_Table::bulk_actions() and WP_Plugins_List_Table::single_row(). Props kurtpayne. fixes #22224

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-list-table.php

    r21944 r22376  
    766766
    767767        <div class="alignleft actions">
    768             <?php $this->bulk_actions( $which ); ?>
     768            <?php $this->bulk_actions(); ?>
    769769        </div>
    770770<?php
  • trunk/wp-admin/includes/class-wp-plugins-list-table.php

    r21996 r22376  
    253253    }
    254254
    255     function bulk_actions( $which ) {
     255    function bulk_actions() {
    256256        global $status;
    257257
     
    259259            return;
    260260
    261         parent::bulk_actions( $which );
     261        parent::bulk_actions();
    262262    }
    263263
     
    294294
    295295        foreach ( $this->items as $plugin_file => $plugin_data )
    296             $this->single_row( $plugin_file, $plugin_data );
    297     }
    298 
    299     function single_row( $plugin_file, $plugin_data ) {
     296            $this->single_row( array( $plugin_file, $plugin_data ) );
     297    }
     298
     299    function single_row( $item ) {
    300300        global $status, $page, $s, $totals;
    301301
     302        list( $plugin_file, $plugin_data ) = $item;
    302303        $context = $status;
    303304        $screen = $this->screen;
Note: See TracChangeset for help on using the changeset viewer.