CCCPaste

JKIT || Fix Security Issues

/**
 * Fix Security Issues
 *
 * @param array $allowedtags Allowed HTML Tags.
 *
 * @return array
 */
function fix_jkit_allowed_html( $allowedtags ) {
	if ( isset( $allowedtags['script'] ) ) {
		unset( $allowedtags['script'] );
	}

	return $allowedtags;
}
add_filter( 'wp_kses_allowed_html', 'fix_jkit_allowed_html', 9999 );