Make WordPress Core


Ignore:
Timestamp:
05/26/2006 10:14:55 PM (20 years ago)
Author:
ryan
Message:

Add some category filters.

File:
1 edited

Legend:

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

    r3791 r3799  
    4747
    4848add_filter('comment_excerpt', 'convert_chars');
     49
     50// Categories
     51add_filter('pre_category_name', 'strip_tags');
     52add_filter('pre_category_name', 'trim');
     53add_filter('pre_category_name', 'wp_filter_kses');
     54add_filter('pre_category_name', 'wp_specialchars', 30);
     55add_filter('pre_category_description', 'wp_filter_kses');
    4956
    5057// Places to balance tags on input
Note: See TracChangeset for help on using the changeset viewer.