Make the class to filename mapping easier to read.

Ensure that we support PHP4 for now by passing references to objects in list tables code.
See #14579.

git-svn-id: https://develop.svn.wordpress.org/trunk@16125 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2010-11-01 08:37:02 +00:00
parent bdd159f7ca
commit 0abd20cd8d
3 changed files with 23 additions and 12 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ class WP_Plugins_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();
@@ -126,7 +126,7 @@ class WP_Plugins_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( 'plugins_per_page', 999 );