mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Don't double escape.
git-svn-id: https://develop.svn.wordpress.org/trunk@2925 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user