Skip to content

Commit

Permalink
Make the require_rewind_auth parameter optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark George authored and seear committed Nov 1, 2019
1 parent 30187dc commit 6be1d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.json-api-endpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function __construct( $args ) {
$this->allow_unauthorized_request = (bool) $args['allow_unauthorized_request'];
$this->allow_jetpack_site_auth = (bool) $args['allow_jetpack_site_auth'];
$this->allow_upload_token_auth = (bool) $args['allow_upload_token_auth'];
$this->require_rewind_auth = (bool) $args['require_rewind_auth'];
$this->require_rewind_auth = isset( $args['require_rewind_auth'] ) ? (bool) $args['require_rewind_auth'] : false;

$this->version = $args['version'];

Expand Down

0 comments on commit 6be1d61

Please sign in to comment.