WordPress.org

Make WordPress Core

Ticket #28673: 28673.5.diff

File 28673.5.diff, 823 bytes (added by helen, 7 years ago)
  • src/wp-admin/includes/class-wp-plugin-install-list-table.php

     
    179179                $this->items = $api->plugins;
    180180
    181181                if ( $this->orderby ) {
    182                         uasort( $this->items, array( $this, '_order_callback' ) );
     182                        uasort( $this->items, array( $this, 'order_callback' ) );
    183183                }
    184184
    185185                $this->set_pagination_args( array(
     
    304304                return array();
    305305        }
    306306
    307         public function _order_callback( $plugin_a, $plugin_b ) {
     307        private function order_callback( $plugin_a, $plugin_b ) {
    308308                $orderby = $this->orderby;
    309309                if ( ! isset( $plugin_a->$orderby, $plugin_b->$orderby ) ) {
    310310                        return 0;