summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-05-06 14:07:10 +0300
committerAndrew Dolgov <[email protected]>2023-05-06 14:07:10 +0300
commit3de09b44f27a151075aaad33def27e261ac7915c (patch)
tree3116ad034379c51f450c8a8c180bac63c242dcc6
parent0578bf802571781a0a7e3debbbec66437a7d28b4 (diff)
_order_to_override_query: fix custom sort plugins overriding each other
-rwxr-xr-xclasses/feeds.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 68619302f..e95599b85 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -2458,6 +2458,9 @@ class Feeds extends Handler_Protected {
PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_HEADLINES_CUSTOM_SORT_OVERRIDE,
function ($result) use (&$query, &$skip_first_id) {
list ($query, $skip_first_id) = $result;
+
+ // run until first hard match
+ return !empty($query);
},
$order);