Use an existing string.
see #19205. git-svn-id: https://develop.svn.wordpress.org/trunk@29234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
54f0c851d5
commit
9b1dbf7417
@ -2421,7 +2421,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {
|
||||
$args = wp_parse_args( $args, $defaults );
|
||||
|
||||
if ( $args['parent'] > 0 && ! term_exists( (int) $args['parent'] ) ) {
|
||||
return new WP_Error( 'missing_parent', __( 'The selected parent term no longer exists' ) );
|
||||
return new WP_Error( 'missing_parent', __( 'Parent term does not exist.' ) );
|
||||
}
|
||||
$args['name'] = $term;
|
||||
$args['taxonomy'] = $taxonomy;
|
||||
|
Loading…
Reference in New Issue
Block a user