- Timestamp:
- 12/12/2018 09:11:27 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43737
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r43636 r43987 470 470 $request->set_param( 'context', 'view' ); 471 471 472 /** 473 * Fires after a single term is completely created or updated via the REST API. 474 * 475 * The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug. 476 * 477 * @since 5.0.0 478 * 479 * @param WP_Term $term Inserted or updated term object. 480 * @param WP_REST_Request $request Request object. 481 * @param bool $creating True when creating a term, false when updating. 482 */ 483 do_action( "rest_after_insert_{$this->taxonomy}", $term, $request, true ); 484 472 485 $response = $this->prepare_item_for_response( $term, $request ); 473 486 $response = rest_ensure_response( $response ); … … 558 571 559 572 $request->set_param( 'context', 'view' ); 573 574 /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */ 575 do_action( "rest_after_insert_{$this->taxonomy}", $term, $request, false ); 560 576 561 577 $response = $this->prepare_item_for_response( $term, $request );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)