Skip to content
Permalink
Browse files

Fix bug in wfx_filter_post_class()

This was bumping certain RestAPI requests and other custom generated queries… now it does not ;)
  • Loading branch information...
Jonnyauk committed Jul 12, 2018
1 parent 3b742e6 commit 35d22b638a5eaab733b99909a21d27fa344a2fe7
Showing with 1 addition and 1 deletion.
  1. +1 −1 functions.php
@@ -914,7 +914,7 @@
* @param none
*/
if ( !function_exists( 'wfx_filter_post_class' ) ) : function wfx_filter_post_class() {
if ( !is_admin() && !is_feed() ) {
if ( !is_admin() && !is_feed() && ( is_singular() || is_archive() ) ) {
global $wfx; $wfx->filter_post_class();
}
} endif;

0 comments on commit 35d22b6

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