From d66e4693e6e13cd6a0c7719543322dcb5eca4b70 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Wed, 25 Feb 2004 17:12:30 +0000 Subject: [PATCH] just moving these two lines fixes the the_date() issue for GMT git-svn-id: https://develop.svn.wordpress.org/trunk@934 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 2efbb7ef46..c26b9362a7 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1127,6 +1127,8 @@ function start_wp() { ); } $authordata = get_userdata($post->post_author); + $post->post_date_gmt = $post->post_date; + $post->post_date = get_date_from_gmt($post->post_date); $day = mysql2date('d.m.y', $post->post_date); $currentmonth = mysql2date('m', $post->post_date); $numpages = 1; @@ -1149,8 +1151,6 @@ function start_wp() { $pages[0] = stripslashes($post->post_content); $multipage = 0; } - $post->post_date_gmt = $post->post_date; - $post->post_date = get_date_from_gmt($post->post_date); return true; }