diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index f60fd6bd82..2ee607d2d5 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -274,7 +274,8 @@ function media_handle_upload($file_id, $post_id, $post_data = array(), $override $time = current_time('mysql'); if ( $post = get_post($post_id) ) { - if ( substr( $post->post_date, 0, 4 ) > 0 ) + // The post date doesn't usually matter for pages, so don't backdate this upload. + if ( 'page' !== $post->post_type && substr( $post->post_date, 0, 4 ) > 0 ) $time = $post->post_date; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 714d5c0f0d..1e09dd949e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-beta3-41963'; +$wp_version = '4.9-beta3-41964'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.