Skip to content

Commit

Permalink
JSON API: WPCOM_JSON_API_Bulk_Delete_Post_Endpoint
Browse files Browse the repository at this point in the history
Callback should be called with the same params as the parent's callback.

fixes #8186
  • Loading branch information
roccotripaldi committed Nov 17, 2017
1 parent e9e66a6 commit 68420bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

class WPCOM_JSON_API_Bulk_Delete_Post_Endpoint extends WPCOM_JSON_API_Update_Post_v1_1_Endpoint {
// /sites/%s/posts/delete
function callback( $path = '', $blog_id = 0 ) {
function callback( $path = '', $blog_id = 0, $post_id = 0 ) {
$blog_id = $this->api->switch_to_blog_and_validate_user( $this->api->get_blog_id( $blog_id ) );
if ( is_wp_error( $blog_id ) ) {
return $blog_id;
Expand Down

0 comments on commit 68420bf

Please sign in to comment.