Stripslashes tag names to prevent double slashing in wp_insert_term(). fixes #5202
git-svn-id: https://develop.svn.wordpress.org/trunk@6267 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c4dc37ef75
commit
a42beabd86
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user