You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The deprecated filter ep_match_fuzziness is run after its replacement filter ep_post_match_fuzziness despite the first filter being defined with add_filter and returning a value.
As such, fuzziness is always set to "auto", the default value for the deprecated filter.
Steps to Reproduce
Add the filter
add_filter('ep_post_match_fuzziness', function ($fuzziness): int {
return1;
});
When the search is performed this is called (Version_400.php line 87):
Hey @marc-tt, thanks for opening the issue. I've created a PR changing a bit how those filters work and now the deprecated filters will honor the value set with the newer filters. And yes, @kevinlisota, that is related to your question, thanks for that.
Describe the bug
The deprecated filter
ep_match_fuzziness
is run after its replacement filterep_post_match_fuzziness
despite the first filter being defined withadd_filter
and returning a value.As such, fuzziness is always set to "auto", the default value for the deprecated filter.
Steps to Reproduce
When the search is performed this is called (Version_400.php line 87):
Then this is called (Version_400.php line 162):
...which overrides the previous value to "auto".
Expected behavior
If the replacement filter is defined, then the deprecated filter should not be called.
Environment information
The text was updated successfully, but these errors were encountered: