- Timestamp:
- 12/12/2018 09:11:27 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-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-posts-controller.php
r43980 r43987 609 609 $request->set_param( 'context', 'edit' ); 610 610 611 /** 612 * Fires after a single post is completely created or updated via the REST API. 613 * 614 * The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug. 615 * 616 * @since 5.0.0 617 * 618 * @param WP_Post $post Inserted or updated post object. 619 * @param WP_REST_Request $request Request object. 620 * @param bool $creating True when creating a post, false when updating. 621 */ 622 do_action( "rest_after_insert_{$this->post_type}", $post, $request, true ); 623 611 624 $response = $this->prepare_item_for_response( $post, $request ); 612 625 $response = rest_ensure_response( $response ); … … 734 747 735 748 $request->set_param( 'context', 'edit' ); 749 750 /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php */ 751 do_action( "rest_after_insert_{$this->post_type}", $post, $request, false ); 736 752 737 753 $response = $this->prepare_item_for_response( $post, $request );
Note: See TracChangeset
for help on using the changeset viewer.