CCCPaste

JKIT || Fix Polylang Flags Issues

/**
 * Fix JKIT issue with Polylang Flags
 *
 * @param array $allowed_protocols Allowed Protocols.
 *
 * @return array
 */
function jkit_fix_pll_flag_issues( $allowed_protocols ) {
	$allowed_protocols = array_merge( $allowed_protocols, array( 'data' ) );

	return $allowed_protocols;
}
add_filter( 'kses_allowed_protocols', 'jkit_fix_pll_flag_issues' );