WordPress.org

Ready to get started?Download WordPress

Forums

deballing wptexturize (1 post)

  1. jidanni
    Member
    Posted 5 years ago #

    Gentlemen, I hate how WordPress corrupts ASCII so much, that I have made the following plugin:

    // 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;}

    My question is: will this break something? Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags