From 8a0aad4985666e97fa0d2812b569f102b44310dc Mon Sep 17 00:00:00 2001 From: Ned Zimmerman Date: Wed, 14 Dec 2016 16:47:09 -0400 Subject: [PATCH] Replace multi_sort with wp_list_sort. --- includes/pb-stats.php | 2 +- pressbooks-stats.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/pb-stats.php b/includes/pb-stats.php index 252de9e..d6f8fec 100644 --- a/includes/pb-stats.php +++ b/includes/pb-stats.php @@ -487,7 +487,7 @@ function users_with_x_or_more_books( $x ) { } } - $foo = \Pressbooks\Utility\multi_sort( $foo, 'last_export:desc' ); + $foo = wp_list_sort( $foo, array( 'last_export' => 'DESC' ) ); set_transient( $transient, $foo, 60 * 60 * 12 ); diff --git a/pressbooks-stats.php b/pressbooks-stats.php index d613a62..a543682 100644 --- a/pressbooks-stats.php +++ b/pressbooks-stats.php @@ -2,7 +2,7 @@ /* Plugin Name: Pressbooks Stats Description: Pressbooks plugin which provides some basic activity statistics for a Pressbooks network. -Version: 1.0.0 +Version: 1.1.0 Author: BookOven Inc. */