Don't double escape.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e2b904c714
commit
9531b6328b
|
@ -18,7 +18,6 @@ if ( !$category_nicename = sanitize_title($cat_name) )
|
|||
if ( $already = category_exists($cat_name) )
|
||||
die((string) $already);
|
||||
|
||||
$cat_name = $wpdb->escape($cat_name);
|
||||
$new_cat_id = wp_create_category($cat_name);
|
||||
die((string) $new_cat_id);
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue