[Resolved] Bug in relevanssi_default_post_ok
There’s a bug in the
relevanssi_default_post_okfunction. The problem is that, although it receives a
$post_okvalue from earlier filter function(s), it disregards this received value and overwrites it with true or false depending on its own tests.
The easiest solution is to add a, let’s say,
$my_post_ok = true;declaration at the beginning of the function, then use this variable in the 6 instances where
$post_okwas originally used, and finally end the function with a
return ( $my_post_ok && $post_ok );. This way an originally
$post_okvalue won’t suddenly become
trueand make posts that should be hidden reappear in the search.
What do you think?
- The topic ‘[Resolved] Bug in relevanssi_default_post_ok’ is closed to new replies.