mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 15:13:55 +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 ) {
|
foreach ( $posts as $post ) {
|
||||||
|
|
||||||
//Woocommerce AJAX fixes....remove filtration on wc-ajax which goes to Front Page
|
//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;
|
$filtered_posts[] = $post;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user