Changeset 49043 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 09/25/2020 12:02:39 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r48941 r49043 2234 2234 $args = wp_parse_args( $args, $defaults ); 2235 2235 2236 if ( $args['parent'] > 0 && ! term_exists( (int) $args['parent'] ) ) {2236 if ( (int) $args['parent'] > 0 && ! term_exists( (int) $args['parent'] ) ) { 2237 2237 return new WP_Error( 'missing_parent', __( 'Parent term does not exist.' ) ); 2238 2238 } … … 3002 3002 } 3003 3003 3004 if ( $parsed_args['parent'] > 0 && ! term_exists( (int) $parsed_args['parent'] ) ) {3004 if ( (int) $parsed_args['parent'] > 0 && ! term_exists( (int) $parsed_args['parent'] ) ) { 3005 3005 return new WP_Error( 'missing_parent', __( 'Parent term does not exist.' ) ); 3006 3006 }
Note: See TracChangeset
for help on using the changeset viewer.