From f87f66169a4d8b09b83c2fb161bc1f703d71caf8 Mon Sep 17 00:00:00 2001 From: ve3 Date: Mon, 1 Jul 2024 15:30:41 +0700 Subject: [PATCH] v1.0.4 --- App/Controllers/Front/AlterPosts.php | 2 +- changelog.md | 5 +++++ rd-postorder.php | 2 +- readme.txt | 14 +++++++------- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/App/Controllers/Front/AlterPosts.php b/App/Controllers/Front/AlterPosts.php index fac7e26..d0ea265 100644 --- a/App/Controllers/Front/AlterPosts.php +++ b/App/Controllers/Front/AlterPosts.php @@ -218,7 +218,7 @@ protected function isDisableCustomOrder() */ public function registerHooks() { - add_action('pre_get_posts', [$this, 'alterListPostAction']); + add_action('pre_get_posts', [$this, 'alterListPostAction'], 20); add_filter('get_previous_post_where', [$this, 'alterPreviousPostWhere'], 10, 5); add_filter('get_previous_post_sort', [$this, 'alterPreviousPostSort'], 10, 2); diff --git a/changelog.md b/changelog.md index 0466564..0f5f2d3 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,11 @@ ## Version 1.0.x +### 1.0.2 +2021-12-14 + +* Update WPListTable class based on WordPress 5.8.2. + ### 1.0.1 2019-03-07 diff --git a/rd-postorder.php b/rd-postorder.php index 7c0136b..8f5b5c3 100644 --- a/rd-postorder.php +++ b/rd-postorder.php @@ -3,7 +3,7 @@ * Plugin Name: Rundiz PostOrder * Plugin URI: https://rundiz.com/?p=319 * Description: Re-order posts to what you want. - * Version: 1.0.3 + * Version: 1.0.4 * Requires at least: 4.7.0 * Requires PHP: 5.5 * Author: Vee Winch diff --git a/readme.txt b/readme.txt index fdcd21d..a18d2c4 100644 --- a/readme.txt +++ b/readme.txt @@ -1,8 +1,8 @@ === Rundiz PostOrder === Contributors: okvee Tags: posts, order, sort, re-arrange, sortable -Tested up to: 6.5 -Stable tag: 1.0.3 +Tested up to: 6.6 +Stable tag: 1.0.4 License: MIT License URI: https://opensource.org/licenses/MIT Requires at least: 4.7.0 @@ -70,6 +70,11 @@ Please note that to hook into this filter in the theme some times it might not w 3. Re-ordering action. == Changelog == += 1.0.4 = +2024-07-01 + +* Update priority for hook `pre_get_posts` to be lower (higher number) to let other plugins hook work with this plugin either. + = 1.0.3 = 2022-02-01 @@ -88,8 +93,3 @@ Please note that to hook into this filter in the theme some times it might not w * Make Polylang supported (on selected language and list posts). * Fix alter post on front pages main query only. * Update translation. - -= 1.0.2 = -2021-12-14 - -* Update WPListTable class based on WordPress 5.8.2.