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
This commit is contained in:
markjaquith 2007-10-17 20:41:43 +00:00
parent 9ef11d81bd
commit d395d55a0e
1 changed files with 3 additions and 0 deletions

View File

@ -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);