Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User talk:Here/Texturize

Removing wptexturize as much as possible

I made a plugin that does

// One can turn off smileys from the admin panels, but to keep WordPress out of our ASCII we must:
foreach(
 array(
       'bloginfo',
       'comment_author',
       'comment_text',
       'link_description',
       'link_name',
       'link_notes',
       'list_cats',
       'single_post_title',
       'term_description',
       'term_name',
       'the_content',
       'the_excerpt',
       'the_title',
       'wp_title',
       ) as $filter ) {
  remove_filter($filter, 'wptexturize');}
//However there are still a few places where WordPress goes behind our backs to still use wptexturize(),
//and PHP won't allow us to just redeclare function wptexturize($text){return $text;}

I hope it won't break anything. Jidanni 03:29, 4 February 2009 (UTC)