Plugin install: The sort callback doesn't need to be public.
props helen. fixes #28673. Built from https://develop.svn.wordpress.org/trunk@29666 git-svn-id: http://core.svn.wordpress.org/trunk@29440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b5f0a32baa
commit
683238567d
|
@ -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