Changeset 38162
- Timestamp:
- 07/27/2016 10:42:23 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r38125 r38162 2242 2242 return $term; 2243 2243 } 2244 if ( is_int( $term) && 0 == $term ) {2244 if ( is_int( $term ) && 0 == $term ) { 2245 2245 return new WP_Error( 'invalid_term_id', __( 'Invalid term ID.' ) ); 2246 2246 } 2247 if ( '' == trim( $term) ) {2247 if ( '' == trim( $term ) ) { 2248 2248 return new WP_Error( 'empty_term_name', __( 'A name is required for this term.' ) ); 2249 2249 } … … 2846 2846 $parsed_args['description'] = $description; 2847 2847 2848 if ( '' == trim($name) ) 2849 return new WP_Error('empty_term_name', __('A name is required for this term')); 2848 if ( '' == trim( $name ) ) { 2849 return new WP_Error( 'empty_term_name', __( 'A name is required for this term.' ) ); 2850 } 2850 2851 2851 2852 if ( $parsed_args['parent'] > 0 && ! term_exists( (int) $parsed_args['parent'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.