Support » Plugin: Remove Title Attributes » [Plugin: Remove Title Attributes] Breaks size of Tag Cloud links

Viewing 1 replies (of 1 total)
  • It will work fine if you replace:

    // For tag clouds
    function wp_tag_cloud_remove_title_attributes($return) {
    	if (get_option('rta_from_tag_clouds') == 'on') {
    		// N.B. This function uses single quotes
    		$return = preg_replace("!title='(.+)'!", "", $return);
    	}
    	return $return;
    }

    with this:

    // For tag clouds
    function wp_tag_cloud_remove_title_attributes($return) {
    	if (get_option('rta_from_tag_clouds') == 'on') {
    		// N.B. This function uses single quotes
    		$return = preg_replace("!title='([^']+)'!", "", $return);
    	}
    	return $return;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Remove Title Attributes] Breaks size of Tag Cloud links’ is closed to new replies.