File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed
wp-includes/rest-api/auth Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ public static function get_rest_uri() {
8282 * @see register_rest_route()
8383 */
8484 public function register_routes () {
85-
8685 $ args = array (
8786 array (
8887 'methods ' => WP_REST_Server::CREATABLE ,
@@ -170,7 +169,6 @@ public function register_routes() {
170169 * @return array Item schema data.
171170 */
172171 public function get_item_schema () {
173-
174172 $ schema = array (
175173 '$schema ' => 'http://json-schema.org/draft-04/schema# ' ,
176174 'title ' => esc_html__ ( 'Key-pair ' , 'jwt-auth ' ),
Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ public static function get_rest_uri() {
8888 * @see register_rest_route()
8989 */
9090 public function register_routes () {
91-
9291 $ args = array (
9392 array (
9493 'methods ' => WP_REST_Server::CREATABLE ,
@@ -139,7 +138,6 @@ public function register_routes() {
139138 * @return array Item schema data.
140139 */
141140 public function get_item_schema () {
142-
143141 $ schema = array (
144142 '$schema ' => 'http://json-schema.org/draft-04/schema# ' ,
145143 'title ' => __ ( 'JSON Web Token ' , 'jwt-auth ' ),
@@ -246,7 +244,6 @@ public function authenticate( $result ) {
246244 * @return bool
247245 */
248246 public function require_token () {
249-
250247 $ require_token = true ;
251248 $ request_uri = isset ( $ _SERVER ['REQUEST_URI ' ] ) ? $ _SERVER ['REQUEST_URI ' ] : false ; // WPCS: sanitization okay.
252249 $ request_method = isset ( $ _SERVER ['REQUEST_METHOD ' ] ) ? $ _SERVER ['REQUEST_METHOD ' ] : false ; // WPCS: sanitization okay.
You can’t perform that action at this time.
0 commit comments