From 11a12f51a4eb981ecfae539fad768060d2e4e842 Mon Sep 17 00:00:00 2001 From: Jonny Date: Wed, 20 Feb 2019 16:39:22 +0000 Subject: [PATCH] Fix bug with post class filters in search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Custom Wonderflux post class filters were not applying to search results archives - is_archive() conditional test wasn’t triggering it! --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 4b4e279..33cbe2d 100644 --- a/functions.php +++ b/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;