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:
Andrew Nacin 2014-09-02 06:51:16 +00:00
parent b5f0a32baa
commit 683238567d
1 changed files with 2 additions and 2 deletions

View File

@ -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;