_order_to_override_query: fix custom sort plugins overriding each other
This commit is contained in:
parent
0578bf8025
commit
3de09b44f2
|
@ -2458,6 +2458,9 @@ class Feeds extends Handler_Protected {
|
||||||
PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_HEADLINES_CUSTOM_SORT_OVERRIDE,
|
PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_HEADLINES_CUSTOM_SORT_OVERRIDE,
|
||||||
function ($result) use (&$query, &$skip_first_id) {
|
function ($result) use (&$query, &$skip_first_id) {
|
||||||
list ($query, $skip_first_id) = $result;
|
list ($query, $skip_first_id) = $result;
|
||||||
|
|
||||||
|
// run until first hard match
|
||||||
|
return !empty($query);
|
||||||
},
|
},
|
||||||
$order);
|
$order);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue