Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/php/REST_API/REST_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class REST_Controller {
*/
public function __construct() {
assert( static::VERSION > 0, get_class( $this ) . '::VERSION must be set' );
assert( static::BASE_ROUTE, get_class( $this ) . '::BASE_ROUTE must be set' );
assert( static::BASE_ROUTE !== '', get_class( $this ) . '::BASE_ROUTE must be set' );

$this->namespace = REST_API_NAMESPACE . static::VERSION;
add_action( 'rest_api_init', [ $this, 'register_routes' ] );
Expand Down
Loading