Changeset 46191
- Timestamp:
- 09/19/2019 03:49:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r45809 r46191 104 104 * 105 105 * @since 4.4.0 106 * @since 5.3.0 Added the `$request` parameter. 107 * 108 * @param WP_REST_Request $request Full data about the request. 106 * 109 107 * @return WP_Error|null WP_Error indicates unsuccessful login, null indicates successful 110 108 * or no authentication provided 111 109 */ 112 public function check_authentication( $request) {110 public function check_authentication() { 113 111 /** 114 112 * Filters REST authentication errors. … … 131 129 * 132 130 * @since 4.4.0 133 * @since 5.3.0 Added the `$request` argument. 134 * 135 * @param WP_Error|null|bool $result WP_Error if authentication error, null if authentication 136 * method wasn't used, true if authentication succeeded. 137 * @param WP_REST_Request $request Full data about the request. 138 */ 139 return apply_filters( 'rest_authentication_errors', null, $request ); 131 * 132 * @param WP_Error|null|bool WP_Error if authentication error, null if authentication 133 * method wasn't used, true if authentication succeeded. 134 */ 135 return apply_filters( 'rest_authentication_errors', null ); 140 136 } 141 137 … … 328 324 } 329 325 330 $result = $this->check_authentication( $request);326 $result = $this->check_authentication(); 331 327 332 328 if ( ! is_wp_error( $result ) ) {
Note: See TracChangeset
for help on using the changeset viewer.