Skip to content
Permalink
Browse files

Fix bug with post class filters in search

Custom Wonderflux post class filters were not applying to search results archives - is_archive() conditional test wasn’t triggering it!
  • Loading branch information...
Jonnyauk committed Feb 20, 2019
1 parent 6808ba8 commit 11a12f51a4eb981ecfae539fad768060d2e4e842
Showing with 1 addition and 1 deletion.
  1. +1 −1 functions.php
@@ -912,7 +912,7 @@
* @param none
*/
if ( !function_exists( 'wfx_filter_post_class' ) ) : function wfx_filter_post_class() {
if ( !is_admin() && !is_feed() && ( is_singular() || is_archive() ) ) {
if ( !is_admin() && !is_feed() && ( is_singular() || is_archive() || is_search() ) ) {
global $wfx; $wfx->filter_post_class();
}
} endif;

0 comments on commit 11a12f5

Please sign in to comment.
You can’t perform that action at this time.