From d395d55a0e0805a8c68f172dab048a71c23231e0 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 17 Oct 2007 20:41:43 +0000 Subject: [PATCH] Stripslashes tag names to prevent double slashing in wp_insert_term(). fixes #5202 git-svn-id: http://svn.automattic.com/wordpress/trunk@6267 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index e1b53199a9..2935a20ba9 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1026,6 +1026,9 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) { $args = sanitize_term($args, $taxonomy, 'db'); extract($args, EXTR_SKIP); + // expected_slashed ($name) + $name = stripslashes($name); + if ( empty($slug) ) $slug = sanitize_title($name);