Skip to content

Commit

Permalink
Fix bug with post class filters in search
Browse files Browse the repository at this point in the history
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 11a12f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Expand Up @@ -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;
Expand Down

0 comments on commit 11a12f5

Please sign in to comment.