diff --git a/admin/form-builder/assets/js/components/form-fields-v4-1/template.php b/admin/form-builder/assets/js/components/form-fields-v4-1/template.php index a1f9bd188..17fd2696d 100644 --- a/admin/form-builder/assets/js/components/form-fields-v4-1/template.php +++ b/admin/form-builder/assets/js/components/form-fields-v4-1/template.php @@ -58,7 +58,7 @@ class="panel-form-field-buttons wpuf-grid wpuf-grid-cols-1 wpuf-gap-3 sm:wpuf-gr data-source="panel" @click="alert_pro_feature(field)" class="wpuf-relative wpuf-group/pro-field"> -
+
diff --git a/assets/js-templates/form-components.php b/assets/js-templates/form-components.php index 0130dc122..6a94a185c 100644 --- a/assets/js-templates/form-components.php +++ b/assets/js-templates/form-components.php @@ -1146,7 +1146,7 @@ class="panel-form-field-buttons wpuf-grid wpuf-grid-cols-1 wpuf-gap-3 sm:wpuf-gr data-source="panel" @click="alert_pro_feature(field)" class="wpuf-relative wpuf-group/pro-field"> -
+
diff --git a/includes/Ajax/Admin_Form_Builder_Ajax.php b/includes/Ajax/Admin_Form_Builder_Ajax.php index c9762113e..014dac5e6 100644 --- a/includes/Ajax/Admin_Form_Builder_Ajax.php +++ b/includes/Ajax/Admin_Form_Builder_Ajax.php @@ -95,10 +95,6 @@ public function wpuf_get_post_taxonomies_old() { wp_send_json_error( __( 'Unauthorized operation', 'wp-user-frontend' ) ); } - if ( ! current_user_can( wpuf_admin_role() ) ) { - wp_send_json_error( __( 'Unauthorized operation', 'wp-user-frontend' ) ); - } - if ( isset( $post_type ) && empty( $post_data['post_type'] ) ) { wp_send_json_error( __( 'Invalid post type', 'wp-user-frontend' ) ); } @@ -146,10 +142,6 @@ public function get_post_taxonomies() { wp_send_json_error( __( 'Unauthorized operation', 'wp-user-frontend' ) ); } - if ( ! current_user_can( wpuf_admin_role() ) ) { - wp_send_json_error( __( 'Unauthorized operation', 'wp-user-frontend' ) ); - } - if ( isset( $post_type ) && empty( $post_data['post_type'] ) ) { wp_send_json_error( __( 'Invalid post type', 'wp-user-frontend' ) ); } @@ -186,7 +178,7 @@ public function get_post_taxonomies() { $cat .= '
'; $cat .= '
'; $cat .= '
'; $cat .= '