Changeset 3799
- Timestamp:
- 05/26/06 22:14:55 (2 years ago)
- Files:
-
- trunk/wp-admin/admin-db.php (modified) (2 diffs)
- trunk/wp-includes/default-filters.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-db.php
r3705 r3799 93 93 $update = false; 94 94 95 $cat_name = wp_specialchars($cat_name); 96 95 $cat_name = apply_filters('pre_category_name', $cat_name); 96 $category_nicename = apply_filters('pre_category_nicename', $category_nicename); 97 $category_description = apply_filters('pre_category_description', $category_description); 98 97 99 if (empty ($category_nicename)) 98 100 $category_nicename = sanitize_title($cat_name); … … 103 105 $category_description = ''; 104 106 107 $category_parent = (int) $category_parent; 105 108 if (empty ($category_parent)) 106 109 $category_parent = 0; trunk/wp-includes/default-filters.php
r3791 r3799 47 47 48 48 add_filter('comment_excerpt', 'convert_chars'); 49 50 // Categories 51 add_filter('pre_category_name', 'strip_tags'); 52 add_filter('pre_category_name', 'trim'); 53 add_filter('pre_category_name', 'wp_filter_kses'); 54 add_filter('pre_category_name', 'wp_specialchars', 30); 55 add_filter('pre_category_description', 'wp_filter_kses'); 49 56 50 57 // Places to balance tags on input
