- Timestamp:
- 12/01/2020 08:45:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r49302 r49731 678 678 do_action( "rest_after_insert_{$this->post_type}", $post, $request, true ); 679 679 680 wp_after_insert_post( $post, false );680 wp_after_insert_post( $post, false, null ); 681 681 682 682 $response = $this->prepare_item_for_response( $post, $request ); … … 754 754 } 755 755 756 $post = $this->prepare_item_for_database( $request ); 756 $post_before = get_post( $request['id'] ); 757 $post = $this->prepare_item_for_database( $request ); 757 758 758 759 if ( is_wp_error( $post ) ) { … … 831 832 do_action( "rest_after_insert_{$this->post_type}", $post, $request, false ); 832 833 833 wp_after_insert_post( $post, true );834 wp_after_insert_post( $post, true, $post_before ); 834 835 835 836 $response = $this->prepare_item_for_response( $post, $request );
Note: See TracChangeset
for help on using the changeset viewer.