diff --git a/includes/core/class-ajax-common.php b/includes/core/class-ajax-common.php index 9fd939cb..b5798d9b 100644 --- a/includes/core/class-ajax-common.php +++ b/includes/core/class-ajax-common.php @@ -26,8 +26,9 @@ if ( ! class_exists( 'um\core\AJAX_Common' ) ) { add_action( 'wp_ajax_um_' . $action, array( $this, $action ) ); - if ( $nopriv ) + if ( $nopriv ){ add_action( 'wp_ajax_nopriv_um_' . $action, array( $this, $action ) ); + } }