Changeset 56123 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 07/02/2023 08:02:45 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r56091 r56123 668 668 // Prevent wp_insert_post() from overwriting post format with the old data. 669 669 unset( $post_data['tax_input']['post_format'] ); 670 671 // Reset post date of scheduled post to be published. 672 if ( 673 in_array( $post->post_status, array( 'future', 'draft' ), true ) && 674 'publish' === $post_data['post_status'] 675 ) { 676 $post_data['post_date'] = current_time( 'mysql' ); 677 $post_data['post_date_gmt'] = ''; 678 } 670 679 671 680 $post_id = wp_update_post( $post_data );
Note: See TracChangeset
for help on using the changeset viewer.