Changeset 29196 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 07/16/2014 09:51:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r29129 r29196 2419 2419 } 2420 2420 $defaults = array( 'alias_of' => '', 'description' => '', 'parent' => 0, 'slug' => ''); 2421 $args = wp_parse_args($args, $defaults); 2421 $args = wp_parse_args( $args, $defaults ); 2422 2423 if ( $args['parent'] > 0 && ! term_exists( (int) $args['parent'] ) ) { 2424 return new WP_Error( 'missing_parent', __( 'The selected parent term no longer exists' ) ); 2425 } 2422 2426 $args['name'] = $term; 2423 2427 $args['taxonomy'] = $taxonomy;
Note: See TracChangeset
for help on using the changeset viewer.