Changeset 35227 for trunk/src/wp-includes/taxonomy-functions.php
- Timestamp:
- 10/16/2015 09:41:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy-functions.php
r35170 r35227 752 752 $new_term_id = _split_shared_term( $_term->term_id, $_term->term_taxonomy_id ); 753 753 754 // If no split occurred, this is an invalid request. 754 // If no split occurred, this is an invalid request. Return null (not WP_Error) for back compat. 755 755 if ( $new_term_id === $_term->term_id ) { 756 return n ew WP_Error( 'invalid_term', __( 'Empty Term' ) );756 return null; 757 757 758 758 // The term has been split. Refetch the term from the proper taxonomy.
Note: See TracChangeset
for help on using the changeset viewer.