From 2fb16da256249e2506b8a885205ab9e93b2766e1 Mon Sep 17 00:00:00 2001 From: Anderson Grudtner Martins Date: Fri, 11 Sep 2020 18:01:19 -0300 Subject: [PATCH 1/3] Add order by to the method that return authors Fix #237 --- src/functions/template-tags.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/functions/template-tags.php b/src/functions/template-tags.php index df92f73b..731d0cdf 100644 --- a/src/functions/template-tags.php +++ b/src/functions/template-tags.php @@ -83,7 +83,8 @@ function get_multiple_authors($post = 0, $filter_the_author = true, $archive = f "SELECT tt.term_id FROM {$wpdb->term_relationships} AS tr INNER JOIN {$wpdb->term_taxonomy} AS tt ON (tr.`term_taxonomy_id` = tt.`term_taxonomy_id`) - WHERE tr.object_id = %d AND tt.taxonomy = 'author'", + WHERE tr.object_id = %d AND tt.taxonomy = 'author' + ORDER BY tr.term_order", $postId ) ); From bdee82702765887ab12e139305a4369bd68e4da5 Mon Sep 17 00:00:00 2001 From: Anderson Grudtner Martins Date: Fri, 11 Sep 2020 18:07:19 -0300 Subject: [PATCH 2/3] Update version number --- defines.php | 2 +- publishpress-authors.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defines.php b/defines.php index 6eb8f021..f17623fc 100644 --- a/defines.php +++ b/defines.php @@ -12,7 +12,7 @@ defined('ABSPATH') or die('No direct script access allowed.'); if (!defined('PP_AUTHORS_VERSION')) { - define('PP_AUTHORS_VERSION', '3.7.1'); + define('PP_AUTHORS_VERSION', '3.7.1-hotfix-237'); define('PP_AUTHORS_FILE', 'publishpress-authors/publishpress-authors.php'); define('PP_AUTHORS_BASE_PATH', plugin_dir_path(__DIR__ . '/publishpress-authors.php')); define('PP_AUTHORS_MODULES_PATH', PP_AUTHORS_BASE_PATH . 'src/modules/'); diff --git a/publishpress-authors.php b/publishpress-authors.php index e5f3b042..cede3fbc 100644 --- a/publishpress-authors.php +++ b/publishpress-authors.php @@ -5,7 +5,7 @@ * Description: PublishPress Authors allows you to add multiple authors and guest authors to WordPress posts * Author: PublishPress * Author URI: https://publishpress.com - * Version: 3.7.1 + * Version: 3.7.1-hotfix-237 * Text Domain: publishpress-authors * * ------------------------------------------------------------------------------ From e5d53ee609a8c48b87a7cccd3987c755250517cf Mon Sep 17 00:00:00 2001 From: Anderson Grudtner Martins Date: Mon, 14 Sep 2020 15:03:02 -0300 Subject: [PATCH 3/3] Preparing to release v3.7.2 --- defines.php | 2 +- publishpress-authors.php | 2 +- readme.txt | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/defines.php b/defines.php index f17623fc..d58cc1c7 100644 --- a/defines.php +++ b/defines.php @@ -12,7 +12,7 @@ defined('ABSPATH') or die('No direct script access allowed.'); if (!defined('PP_AUTHORS_VERSION')) { - define('PP_AUTHORS_VERSION', '3.7.1-hotfix-237'); + define('PP_AUTHORS_VERSION', '3.7.2'); define('PP_AUTHORS_FILE', 'publishpress-authors/publishpress-authors.php'); define('PP_AUTHORS_BASE_PATH', plugin_dir_path(__DIR__ . '/publishpress-authors.php')); define('PP_AUTHORS_MODULES_PATH', PP_AUTHORS_BASE_PATH . 'src/modules/'); diff --git a/publishpress-authors.php b/publishpress-authors.php index cede3fbc..c5b69b66 100644 --- a/publishpress-authors.php +++ b/publishpress-authors.php @@ -5,7 +5,7 @@ * Description: PublishPress Authors allows you to add multiple authors and guest authors to WordPress posts * Author: PublishPress * Author URI: https://publishpress.com - * Version: 3.7.1-hotfix-237 + * Version: 3.7.2 * Text Domain: publishpress-authors * * ------------------------------------------------------------------------------ diff --git a/readme.txt b/readme.txt index 2cb7429d..3f5f0cdf 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Tags: multiple authors, authors, guest authors, author fields, author layouts Requires at least: 4.7 Requires PHP: 5.6 Tested up to: 5.5 -Stable tag: 3.7.1 +Stable tag: 3.7.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -127,6 +127,10 @@ There are two ways to install the PublishPress Authors plugin: The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.0.0.html). += [3.7.2] - 2020-09-14 = + +* Fixed: Fixed the reordering issue on authors in the post edit page; + = [3.7.1] - 2020-09-11 = * Fixed: Fixed the authors field in the quick edit panel. It was displaying all authors instead of only the post authors, #236;