mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 01:24:27 +00:00
Remove lingering instances of call time pass-by-reference, limited to instances of callable - use $this instead of &$this.
Props jdgrimes. See #25160. git-svn-id: https://develop.svn.wordpress.org/trunk@25254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -99,7 +99,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
|
||||
if ( $s ) {
|
||||
$status = 'search';
|
||||
$plugins['search'] = array_filter( $plugins['all'], array( &$this, '_search_callback' ) );
|
||||
$plugins['search'] = array_filter( $plugins['all'], array( $this, '_search_callback' ) );
|
||||
}
|
||||
|
||||
$totals = array();
|
||||
@@ -121,7 +121,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
$orderby = ucfirst( $orderby );
|
||||
$order = strtoupper( $order );
|
||||
|
||||
uasort( $this->items, array( &$this, '_order_callback' ) );
|
||||
uasort( $this->items, array( $this, '_order_callback' ) );
|
||||
}
|
||||
|
||||
$plugins_per_page = $this->get_items_per_page( str_replace( '-', '_', $screen->id . '_per_page' ), 999 );
|
||||
|
||||
Reference in New Issue
Block a user