Changeset 40114 for branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 02/24/2017 09:58:07 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r40081 r40114 1000 1000 if ( ! empty( $date_data ) ) { 1001 1001 list( $prepared_post->post_date, $prepared_post->post_date_gmt ) = $date_data; 1002 $prepared_post->edit_date = true; 1002 1003 } 1003 1004 } elseif ( ! empty( $schema['properties']['date_gmt'] ) && ! empty( $request['date_gmt'] ) ) { … … 1006 1007 if ( ! empty( $date_data ) ) { 1007 1008 list( $prepared_post->post_date, $prepared_post->post_date_gmt ) = $date_data; 1009 $prepared_post->edit_date = true; 1008 1010 } 1009 1011 }
Note: See TracChangeset
for help on using the changeset viewer.