From b0e30b6ff84bec7c803abed99470d732be0beec6 Mon Sep 17 00:00:00 2001 From: Seaton Jiang Date: Thu, 15 Apr 2021 10:58:06 +0800 Subject: [PATCH] feat: add the allowed script attribute (#363) --- inc/options-framework/autoload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/options-framework/autoload.php b/inc/options-framework/autoload.php index c21f2fe..be21078 100755 --- a/inc/options-framework/autoload.php +++ b/inc/options-framework/autoload.php @@ -102,7 +102,7 @@ function custom_sanitize_textarea($input) "height" => array(), "width" => array(), ); - $custom_allowedtags["script"] = array("type" => array(), "src" => array()); + $custom_allowedtags["script"] = array("type" => array(), "src" => array(), "async" => array(),); $custom_allowedtags = array_merge($custom_allowedtags, $allowedposttags); $output = wp_kses($input, $custom_allowedtags); return $output;