Skip to content

Commit

Permalink
permission_callback is required for register_rest_route()
Browse files Browse the repository at this point in the history
This route seems OK to make public—this isn't a valid solution for most other things we're doing!
  • Loading branch information
AugustMiller authored Nov 13, 2024
1 parent ce35b34 commit 7977e84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/wp-import-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
'callback' => fn() => [
'pong' => true,
],
'permission_callback' => '__return_true',
]);

register_rest_route('craftcms/v1', 'info', [
Expand Down

0 comments on commit 7977e84

Please sign in to comment.