Changeset 8394
- Timestamp:
- 07/21/2008 09:54:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/wp-includes/taxonomy.php
r8364 r8394 1200 1200 return new WP_Error('invalid_term_id', __('Invalid term ID')); 1201 1201 1202 if ( '' == trim($term) ) 1203 return new WP_Error('empty_term_name', __('A name is required for this term')); 1204 1202 1205 $defaults = array( 'alias_of' => '', 'description' => '', 'parent' => 0, 'slug' => ''); 1203 1206 $args = wp_parse_args($args, $defaults); … … 1469 1472 $name = stripslashes($name); 1470 1473 $description = stripslashes($description); 1474 1475 if ( '' == trim($name) ) 1476 return new WP_Error('empty_term_name', __('A name is required for this term')); 1471 1477 1472 1478 $empty_slug = false;
Note: See TracChangeset
for help on using the changeset viewer.