Ticket #18218: required-name.patch
File required-name.patch, 633 bytes (added by , 8 years ago) |
---|
-
wp-includes/taxonomy.php
2846 2846 $parsed_args['description'] = $description; 2847 2847 2848 2848 if ( '' == trim($name) ) 2849 return new WP_Error( 'empty_term_name', __('A name is required for this term'));2849 return new WP_Error( 'empty_term_name', __( 'A name is required for this term.' ) ); 2850 2850 2851 2851 if ( $parsed_args['parent'] > 0 && ! term_exists( (int) $parsed_args['parent'] ) ) { 2852 2852 return new WP_Error( 'missing_parent', __( 'Parent term does not exist.' ) );