mirror of https://github.com/vtrois/kratos
feat: add the allowed script attribute (#363)
parent
8251b1189b
commit
b0e30b6ff8
|
@ -102,7 +102,7 @@ function custom_sanitize_textarea($input)
|
||||||
"height" => array(),
|
"height" => array(),
|
||||||
"width" => 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);
|
$custom_allowedtags = array_merge($custom_allowedtags, $allowedposttags);
|
||||||
$output = wp_kses($input, $custom_allowedtags);
|
$output = wp_kses($input, $custom_allowedtags);
|
||||||
return $output;
|
return $output;
|
||||||
|
|
Loading…
Reference in New Issue