post_date_gmt fix
-
Upgrading from 1.02 to 1.2 introduces a post_date_gmt row for the wp_posts table. The upgrade script creates this row as needed, and it’s supposed to add GMT dates for all existing posts. Except that it doesn’t.
The fix is easy: remove the exclamation point on line 747.
Line 747 of wp-admin/upgrade-functions.php:
if (!$got_gmt_fields) {
Change it to:
if ($got_gmt_fields) {
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘post_date_gmt fix’ is closed to new replies.