Plugin install: The sort callback doesn't need to be public.
props helen. fixes #28673. git-svn-id: https://develop.svn.wordpress.org/trunk@29666 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d8b80c3254
commit
7bdd5a7a2e
@ -179,7 +179,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||
$this->items = $api->plugins;
|
||||
|
||||
if ( $this->orderby ) {
|
||||
uasort( $this->items, array( $this, '_order_callback' ) );
|
||||
uasort( $this->items, array( $this, 'order_callback' ) );
|
||||
}
|
||||
|
||||
$this->set_pagination_args( array(
|
||||
@ -304,7 +304,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||
return array();
|
||||
}
|
||||
|
||||
public function _order_callback( $plugin_a, $plugin_b ) {
|
||||
private function order_callback( $plugin_a, $plugin_b ) {
|
||||
$orderby = $this->orderby;
|
||||
if ( ! isset( $plugin_a->$orderby, $plugin_b->$orderby ) ) {
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user