Skip to content

Commit

Permalink
Fix issue with missing permissions_callback. Closes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
brettsmason committed Mar 18, 2024
1 parent 0406531 commit 691e645
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions includes/classes/HealthCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ public function add_endpoint(): void {
'orbit',
'/up',
[
'methods' => 'GET',
'callback' => [ $this, 'run_health_check' ],
'methods' => 'GET',
'callback' => [ $this, 'run_health_check' ],
'permission_callback' => '__return_true',
]
);
}
Expand Down
2 changes: 1 addition & 1 deletion orbit.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://eighteen73.co.uk
* Text Domain: orbit
* Domain Path: /languages
* Version: 1.0.0
* Version: 1.4.1
* Update URI: https://github.com/eighteen73/orbit
*
* @package Orbit
Expand Down

0 comments on commit 691e645

Please sign in to comment.