diff --git a/includes/class-Backstage_REST_Controller_v1.php b/includes/class-Backstage_REST_Controller_v1.php index 3077994..40f099a 100644 --- a/includes/class-Backstage_REST_Controller_v1.php +++ b/includes/class-Backstage_REST_Controller_v1.php @@ -44,7 +44,7 @@ public function register_routes() { } register_rest_route( Backstage_REST_Controller_v1::REST_NAMESPACE, '/' . Backstage_REST_Controller_v1::REST_FRONT_BASE . '/customizer_link', array( - 'methods' => WP_REST_Server::READABLE, + 'methods' => array( WP_REST_Server::READABLE, WP_REST_Server::CREATABLE ), // We allow both to make sure that users can get around issues with GET and multidimensional arrays as parameters. 'callback' => array( $this, 'get_customizer_link' ), 'permission_callback' => array( $this, 'get_customizer_link_permissions_check' ), 'args' => $args, diff --git a/package-lock.json b/package-lock.json index b66742a..80fe72b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -60,7 +60,7 @@ }, "ansi-colors": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", "dev": true, "requires": { @@ -3050,7 +3050,7 @@ }, "load-json-file": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": {