Updates to 5.2.0

This commit is contained in:
WooCommerce
2023-07-08 16:46:44 +02:00
parent eb6759f16c
commit eee9565334
284 changed files with 9169 additions and 4840 deletions

View File

@@ -42,7 +42,7 @@ class WC_REST_Subscriptions_Controller extends WC_REST_Orders_Controller {
public function register_routes() {
parent::register_routes();
register_rest_route( $this->namespace, "/{$this->rest_base}/statuses", array(
register_rest_route( $this->namespace, "/{$this->rest_base}/statuses", array( // nosemgrep: audit.php.wp.security.rest-route.permission-callback.return-true -- /subscriptions/statuses is a public endpoint and doesn't need any permission checks.
array(
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'get_statuses' ),