X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..61343b82c4f0da4c68e4c6373daafff4a81efdd1:/wp-admin/includes/taxonomy.php diff --git a/wp-admin/includes/taxonomy.php b/wp-admin/includes/taxonomy.php index 7423cf92..fdc6d64d 100644 --- a/wp-admin/includes/taxonomy.php +++ b/wp-admin/includes/taxonomy.php @@ -158,7 +158,7 @@ function wp_update_category($catarr) { $category = get_category($cat_ID, ARRAY_A); // Escape data pulled from DB. - $category = add_magic_quotes($category); + $category = wp_slash($category); // Merge old and new fields with new fields overwriting old ones. $catarr = array_merge($category, $catarr);