- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r45267 r45590 424 424 * give them the identifier for future use. 425 425 */ 426 if ( $term_id = $term->get_error_data( 'term_exists' ) ) { 426 $term_id = $term->get_error_data( 'term_exists' ); 427 if ( $term_id ) { 427 428 $existing_term = get_term( $term_id, $this->taxonomy ); 428 429 $term->add_data( $existing_term->term_id, 'term_exists' );
Note: See TracChangeset
for help on using the changeset viewer.