WordPress.org

Make WordPress Core

Changeset 6141


Ignore:
Timestamp:
09/20/2007 06:23:33 PM (11 years ago)
Author:
ryan
Message:

Don't specialchars markup in term description. fixes #5021

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r6035 r6141  
    4949
    5050// Format strings for display.
    51 $filters = array('comment_author', 'term_name', 'term_description', 'link_name', 'link_description',
     51$filters = array('comment_author', 'term_name', 'link_name', 'link_description',
    5252    'link_notes', 'bloginfo', 'wp_title');
    5353foreach ( $filters as $filter ) {
     
    5555    add_filter($filter, 'convert_chars');
    5656    add_filter($filter, 'wp_specialchars');
     57}
     58
     59// Format text area for display.
     60$filters = array('term_description');
     61foreach ( $filters as $filter ) {
     62    add_filter($filter, 'wptexturize');
     63    add_filter($filter, 'convert_chars');
     64    add_filter($filter, 'wpautop');
    5765}
    5866
Note: See TracChangeset for help on using the changeset viewer.