mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user