From b5e8f9749193779b07bac24d44d2993764f50db6 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Fri, 30 Aug 2019 20:12:42 +0800 Subject: [PATCH] Test travis-ci build status --- includes/core/class-ajax-common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) ); + } }