Changeset 57610 for trunk/src/wp-includes/functions.php
- Timestamp:
- 02/13/2024 09:08:43 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r57553 r57610 4052 4052 ); 4053 4053 4054 if ( isset( $parsed_args['error_data'] ) ) { 4055 $data['data']['error'] = $parsed_args['error_data']; 4056 } 4057 4054 4058 if ( ! headers_sent() ) { 4055 4059 header( "Content-Type: application/json; charset={$parsed_args['charset']}" ); … … 4089 4093 'additional_errors' => $parsed_args['additional_errors'], 4090 4094 ); 4095 4096 if ( isset( $parsed_args['error_data'] ) ) { 4097 $data['data']['error'] = $parsed_args['error_data']; 4098 } 4091 4099 4092 4100 if ( ! headers_sent() ) { … … 4266 4274 if ( empty( $title ) && is_array( $errors[0]['data'] ) && ! empty( $errors[0]['data']['title'] ) ) { 4267 4275 $title = $errors[0]['data']['title']; 4276 } 4277 if ( WP_DEBUG_DISPLAY && is_array( $errors[0]['data'] ) && ! empty( $errors[0]['data']['error'] ) ) { 4278 $args['error_data'] = $errors[0]['data']['error']; 4268 4279 } 4269 4280
Note: See TracChangeset
for help on using the changeset viewer.