ColorlibHQ / simple-custom-post-order

Order posts(posts, any custom post types) using a Drag and Drop Sortable JavaScript. Configuration is unnecessary.
http://wordpress.org/plugins/simple-custom-post-order/
GNU General Public License v3.0
31 stars 20 forks source link

suppress_filters condition problem #72

Open mplusb opened 4 years ago

mplusb commented 4 years ago

It seems that the gardian of your condition where you force using menu order is not complete in the ‘pre_get_posts’ action.

If I use suppress_filters with true, wont work.

I think it will be better if the gardian is isset($wp_query->query[‘suppress_filters’]) && !$wp_query->query[‘suppress_filters’] )