Created
September 1, 2009 21:29
-
-
Save nikolasco/179409 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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