Changeset 3801
- Timestamp:
- 05/26/06 22:47:55 (2 years ago)
- Files:
-
- branches/2.0/wp-admin/admin-db.php (modified) (2 diffs)
- branches/2.0/wp-includes/default-filters.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.0/wp-admin/admin-db.php
r3350 r3801 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; branches/2.0/wp-includes/default-filters.php
r3009 r3801 50 50 add_filter('comment_excerpt', 'convert_chars'); 51 51 52 // Categories 53 add_filter('pre_category_name', 'strip_tags'); 54 add_filter('pre_category_name', 'trim'); 55 add_filter('pre_category_name', 'wp_filter_kses'); 56 add_filter('pre_category_name', 'wp_specialchars', 30); 57 add_filter('pre_category_description', 'wp_filter_kses'); 58 52 59 // Places to balance tags on input 53 60 add_filter('content_save_pre', 'balanceTags', 50);
