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() {
82
82
* @see register_rest_route()
83
83
*/
84
84
public function register_routes () {
85
-
86
85
$ args = array (
87
86
array (
88
87
'methods ' => WP_REST_Server::CREATABLE ,
@@ -170,7 +169,6 @@ public function register_routes() {
170
169
* @return array Item schema data.
171
170
*/
172
171
public function get_item_schema () {
173
-
174
172
$ schema = array (
175
173
'$schema ' => 'http://json-schema.org/draft-04/schema# ' ,
176
174
'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() {
88
88
* @see register_rest_route()
89
89
*/
90
90
public function register_routes () {
91
-
92
91
$ args = array (
93
92
array (
94
93
'methods ' => WP_REST_Server::CREATABLE ,
@@ -139,7 +138,6 @@ public function register_routes() {
139
138
* @return array Item schema data.
140
139
*/
141
140
public function get_item_schema () {
142
-
143
141
$ schema = array (
144
142
'$schema ' => 'http://json-schema.org/draft-04/schema# ' ,
145
143
'title ' => __ ( 'JSON Web Token ' , 'jwt-auth ' ),
@@ -246,7 +244,6 @@ public function authenticate( $result ) {
246
244
* @return bool
247
245
*/
248
246
public function require_token () {
249
-
250
247
$ require_token = true ;
251
248
$ request_uri = isset ( $ _SERVER ['REQUEST_URI ' ] ) ? $ _SERVER ['REQUEST_URI ' ] : false ; // WPCS: sanitization okay.
252
249
$ 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