diff options
Diffstat (limited to 'plugins/jetpack/json-endpoints/class.wpcom-json-api-bulk-restore-post-endpoint.php')
-rw-r--r-- | plugins/jetpack/json-endpoints/class.wpcom-json-api-bulk-restore-post-endpoint.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/jetpack/json-endpoints/class.wpcom-json-api-bulk-restore-post-endpoint.php b/plugins/jetpack/json-endpoints/class.wpcom-json-api-bulk-restore-post-endpoint.php index b01f1319..2e59cc1e 100644 --- a/plugins/jetpack/json-endpoints/class.wpcom-json-api-bulk-restore-post-endpoint.php +++ b/plugins/jetpack/json-endpoints/class.wpcom-json-api-bulk-restore-post-endpoint.php @@ -35,7 +35,8 @@ new WPCOM_JSON_API_Bulk_Restore_Post_Endpoint( array( class WPCOM_JSON_API_Bulk_Restore_Post_Endpoint extends WPCOM_JSON_API_Update_Post_v1_1_Endpoint { // /sites/%s/posts/restore - function callback( $path = '', $blog_id = 0 ) { + // The unused $object parameter is for making the method signature compatible with its parent class method. + function callback( $path = '', $blog_id = 0, $object = null ) { $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; |