mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix Woocommerce conflict with wc-ajax
This commit is contained in:
@@ -659,7 +659,7 @@ if ( ! class_exists( 'um\core\Access' ) ) {
|
||||
foreach ( $posts as $post ) {
|
||||
|
||||
//Woocommerce AJAX fixes....remove filtration on wc-ajax which goes to Front Page
|
||||
if ( ! empty( $_GET['wc-ajax'] ) /*&& $query->is_front_page()*/ ) {
|
||||
if ( ! empty( $_GET['wc-ajax'] ) && defined('WC_DOING_AJAX') && WC_DOING_AJAX /*&& $query->is_front_page()*/ ) {
|
||||
$filtered_posts[] = $post;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user