WordPress.org

Make WordPress Core

Changeset 29666


Ignore:
Timestamp:
09/02/2014 06:50:48 AM (7 years ago)
Author:
nacin
Message:

Plugin install: The sort callback doesn't need to be public.

props helen.
fixes #28673.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r29637 r29666  
    180180
    181181        if ( $this->orderby ) {
    182             uasort( $this->items, array( $this, '_order_callback' ) );
     182            uasort( $this->items, array( $this, 'order_callback' ) );
    183183        }
    184184
     
    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 ) ) {
Note: See TracChangeset for help on using the changeset viewer.