WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/05/2007 12:57:23 AM (15 years ago)
Author:
ryan
Message:

Term sanitization. see #4189

File:
1 edited

Legend:

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

    r5462 r5652  
    33// Some default filters
    44add_filter('bloginfo','wp_specialchars');
     5add_filter('term_description', 'wptexturize');
    56add_filter('category_description', 'wptexturize');
    67add_filter('list_cats', 'wptexturize');
     
    5253
    5354add_filter('comment_excerpt', 'convert_chars');
     55
     56// Terms
     57add_filter('pre_term_name', 'strip_tags');
     58add_filter('pre_term_name', 'trim');
     59add_filter('pre_term_name', 'wp_filter_kses');
     60add_filter('pre_term_name', 'wp_specialchars', 30);
     61add_filter('pre_term_description', 'wp_filter_kses');
    5462
    5563// Categories
Note: See TracChangeset for help on using the changeset viewer.