From 2d5f4c2f858ed078dea7155f8059ee1cbee24c08 Mon Sep 17 00:00:00 2001 From: hughdevore Date: Fri, 2 Mar 2018 14:27:39 -0700 Subject: [PATCH] CI-4609 - Make JSON valid again. --- template-tags.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template-tags.php b/template-tags.php index 3cd4023..b48ca6a 100644 --- a/template-tags.php +++ b/template-tags.php @@ -68,6 +68,7 @@ function wpqt_register_queue( $queue_name, $args ) { * * @param string|array $queues Either a single queue to add the task to, or an array of queue names * to add the task to + * @param string $data The data to be saved in the task * @param array $args Additional args you want to pass to the wp_insert_post function * * @return int|WP_Error @@ -97,7 +98,7 @@ function wpqt_create_task( $queues, $data, $args = [] ) { $task_args = [ 'post_type' => 'wpqt-task', - 'post_content' => wp_filter_post_kses( $data ), + 'post_content' => $data, 'post_status' => 'publish', ];