Changeset 45809 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 08/15/2019 07:55:13 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r45687 r45809 405 405 */ 406 406 $result = apply_filters( 'rest_pre_echo_response', $result, $this, $request ); 407 408 // The 204 response shouldn't have a body. 409 if ( 204 === $code || null === $result ) { 410 return null; 411 } 407 412 408 413 $result = wp_json_encode( $result );
Note: See TracChangeset
for help on using the changeset viewer.