Skip to content

Commit dff9ede

Browse files
justlevineCopilot
andauthored
Update inc/Modules/Rest/Abstract_REST_Controller.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 746fbb5 commit dff9ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Modules/Rest/Abstract_REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function check_api_permissions( $request ) {
9393

9494
// If it's a healthcheck with no governing site, allow it and set the governing site.
9595
if ( empty( $governing_site_url ) ) {
96-
if ( '/ ' . $this->namespace . '/health-check' === $request->get_route() ) {
96+
if ( '/' . $this->namespace . '/health-check' === $request->get_route() ) {
9797
Settings::set_parent_site_url( $request_origin );
9898
return true;
9999
}

0 commit comments

Comments
 (0)