3 Commits

Author SHA1 Message Date
Cooper Dalrymple c3870bf9bc Update version to 1.1.3 2026-06-17 16:19:37 -05:00
ogrecooper 14032695af Merge pull request 'Define order in term posts query' (#7) from refresh_flip into main
Reviewed-on: #7
2026-06-17 21:17:03 +00:00
Cooper Dalrymple 5e92d1a839 Define order in term posts query 2026-06-17 16:16:24 -05:00
5 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://getcomposer.org/schema.json",
"name": "cleverogre/ogre-sort",
"version": "1.1.2",
"version": "1.1.3",
"title": "Ogre Sort",
"description": "WordPress plugin which enables drag-and-drop sorting within the admin area for posts, terms, and posts within terms.",
"author": "CleverOgre",
+2 -1
View File
@@ -4,7 +4,7 @@
* @author cleverogre
* @copyright 2025 CleverOgre
* @license GLP-3.0-or-later
* @version 1.1.2
* @version 1.1.3
* @since 1.0.0
*/
@@ -792,6 +792,7 @@ final class Sort {
]],
'meta_key' => "ogre-sort_{$relationship['taxonomy']}_{$term_id}",
'orderby' => 'meta_value_num',
'order' => 'ASC',
]);
$posts = array_values(array_unique($posts));
foreach ($posts as $i => $post_id) {
+2 -2
View File
@@ -6,14 +6,14 @@
* @author cleverogre
* @copyright 2026 CleverOgre
* @license GLP-3.0-or-later
* @version 1.1.2
* @version 1.1.3
* @since 1.0.0
*
* @wordpress-plugin
* Plugin Name: Ogre Sort
* Plugin URI: https://plugins.cleverogre.com/plugin/ogre-sort/
* Description: WordPress plugin which enables drag-and-drop sorting within the admin area for posts, terms, and posts within terms.
* Version: 1.1.2
* Version: 1.1.3
* Requires at least: 5.0
* Requires PHP: 8.0
* Author: CleverOgre
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://www.schemastore.org/package.json",
"name": "cleverogre/ogre-sort",
"version": "1.1.2",
"version": "1.1.3",
"title": "Ogre Sort",
"description": "WordPress plugin which enables drag-and-drop sorting within the admin area for posts, terms, and posts within terms.",
"author": "CleverOgre",
+4 -1
View File
@@ -3,7 +3,7 @@ Contributors: ogrecooper, cleverogre
Tested up to: 6.8
Requires at least: 5.0
Requires PHP: 8.0
Version: 1.1.2
Version: 1.1.3
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Copyright: CleverOgre
@@ -28,6 +28,9 @@ If you don't know what plugin you have downloaded, please contact [CleverOgre](t
== Changelog ==
= 1.1.3 - 2026-06-17 =
* Fix posts order during refresh of term
= 1.1.2 - 2026-05-27 =
* Fix minor deprecation warning when disabled
* Improve query args modification with term relationships