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:
parent
9ef11d81bd
commit
d395d55a0e
|
@ -1026,6 +1026,9 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
|
||||||
$args = sanitize_term($args, $taxonomy, 'db');
|
$args = sanitize_term($args, $taxonomy, 'db');
|
||||||
extract($args, EXTR_SKIP);
|
extract($args, EXTR_SKIP);
|
||||||
|
|
||||||
|
// expected_slashed ($name)
|
||||||
|
$name = stripslashes($name);
|
||||||
|
|
||||||
if ( empty($slug) )
|
if ( empty($slug) )
|
||||||
$slug = sanitize_title($name);
|
$slug = sanitize_title($name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue