Forum Replies Created

Viewing 1 replies (of 1 total)
  • Working on robwrightnet’s workaround, I added the following to wp-includes/kses.php on line 50:

    $string = str_replace("@","&#64",$string);

    so the function looks like this:

    function wp_kses($string, $allowed_html, $allowed_protocols = array ('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'feed', 'gopher', 'mailto'))
    	###############################################################################
    		# This function makes sure that only the allowed HTML element names, attribute
    		# names and attribute values plus only sane HTML entities will occur in
    		# $string. You have to remove any slashes from PHP's magic quotes before you
    		# call this function.
    		###############################################################################
    	{
    	$string = str_replace("@","&#64",$string);
    	$string = wp_kses_no_null($string);
    	$string = wp_kses_js_entities($string);
    	$string = wp_kses_normalize_entities($string);
    	$string = wp_kses_hook($string);
    	$allowed_html_fixed = wp_kses_array_lc($allowed_html);
    	return wp_kses_split($string, $allowed_html_fixed, $allowed_protocols);
    } # function wp_kses

    My mailto links in the tinymce wysiwyg editor now work like a charm.

    Cheers,
    Mike

Viewing 1 replies (of 1 total)