Skip to content

Instantly share code, notes, and snippets.

@nikolasco
Created September 1, 2009 21:29
Show Gist options
  • Save nikolasco/179409 to your computer and use it in GitHub Desktop.
Save nikolasco/179409 to your computer and use it in GitHub Desktop.
<?php
$filters = array_merge(
// lists/arrays pulled from wp-includes/default-filters.php
// from "Format strings for display."
array('comment_author', 'term_name', 'link_name', 'link_description',
'link_notes', 'bloginfo', 'wp_title', 'widget_title'),
// from "Format text area for display."
array('term_description'),
// collected from " Display filters"
array('the_title', 'the_content', 'the_excerpt', 'comment_text',
'list_cats', 'single_post_title'));
foreach ( $filters as $filter ) {
remove_filter($filter, 'wptexturize');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment