Changeset 55361 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 02/17/2023 03:43:47 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r54965 r55361 985 985 986 986 if ( ! empty( $result ) ) { 987 988 // Normalize to either WP_Error or WP_REST_Response... 989 $result = rest_ensure_response( $result ); 990 991 // ...then convert WP_Error across. 992 if ( is_wp_error( $result ) ) { 993 $result = $this->error_to_response( $result ); 994 } 995 987 996 return $result; 988 997 }
Note: See TracChangeset
for help on using the changeset viewer.