From 7cc9a4c092b5efa483508abd08636c2d33a33dee Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 30 Jun 2015 22:31:25 +0000 Subject: [PATCH] Plugins list table: Sort plugins by `Name` by default so translated plugin names get correctly sorted. props swissspidy. fixes #32735. Built from https://develop.svn.wordpress.org/trunk@33010 git-svn-id: http://core.svn.wordpress.org/trunk@32981 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-plugins-list-table.php | 11 +++++++---- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index 9b12644585..51a216a788 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -199,13 +199,16 @@ class WP_Plugins_List_Table extends WP_List_Table { $total_this_page = $totals[ $status ]; - if ( $orderby ) { + if ( ! $orderby ) { + $orderby = 'Name'; + } else { $orderby = ucfirst( $orderby ); - $order = strtoupper( $order ); - - uasort( $this->items, array( $this, '_order_callback' ) ); } + $order = strtoupper( $order ); + + uasort( $this->items, array( $this, '_order_callback' ) ); + $plugins_per_page = $this->get_items_per_page( str_replace( '-', '_', $screen->id . '_per_page' ), 999 ); $start = ( $page - 1 ) * $plugins_per_page; diff --git a/wp-includes/version.php b/wp-includes/version.php index a745b3e884..2079d5e47e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-33009'; +$wp_version = '4.3-alpha-33010'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.