- Timestamp:
- 07/10/2023 10:58:33 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r55248 r56193 1064 1064 } 1065 1065 1066 // (Note that internally this falls through to `wp_delete_post()` 1067 // if the Trash is disabled.) 1066 /* 1067 * (Note that internally this falls through to `wp_delete_post()` 1068 * if the Trash is disabled.) 1069 */ 1068 1070 $result = wp_trash_post( $id ); 1069 1071 $post = get_post( $id ); … … 1270 1272 } 1271 1273 1272 // Sending a null date or date_gmt value resets date and date_gmt to their 1273 // default values (`0000-00-00 00:00:00`). 1274 /* 1275 * Sending a null date or date_gmt value resets date and date_gmt to their 1276 * default values (`0000-00-00 00:00:00`). 1277 */ 1274 1278 if ( 1275 1279 ( ! empty( $schema['properties']['date_gmt'] ) && $request->has_param( 'date_gmt' ) && null === $request['date_gmt'] ) ||
Note: See TracChangeset
for help on using the changeset viewer.