Add some user filters.

git-svn-id: https://develop.svn.wordpress.org/trunk@3800 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-05-26 22:47:13 +00:00
parent e29ccde9a1
commit 041d63a599
3 changed files with 54 additions and 2 deletions
+2 -2
View File
@@ -93,16 +93,16 @@ function wp_insert_category($catarr) {
$update = false;
$cat_name = apply_filters('pre_category_name', $cat_name);
$category_nicename = apply_filters('pre_category_nicename', $category_nicename);
$category_description = apply_filters('pre_category_description', $category_description);
if (empty ($category_nicename))
$category_nicename = sanitize_title($cat_name);
else
$category_nicename = sanitize_title($category_nicename);
$category_nicename = apply_filters('pre_category_nicename', $category_nicename);
if (empty ($category_description))
$category_description = '';
$category_description = apply_filters('pre_category_description', $category_description);
$category_parent = (int) $category_parent;
if (empty ($category_parent))