From 683238567d94dbf1743a3c43cfa1d58acff8503b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 2 Sep 2014 06:51:16 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-plugin-install-list-table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index 1f0306e1b2..e87bf3f793 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -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;