Make WordPress Core

Ticket #1837: functions.php.diff

File functions.php.diff, 584 bytes (added by technosailor, 20 years ago)

Fixes post_modified, post_modified_gmt bug

  • wp-includes/functions-post.php

     
    136136                        post_name = '$post_name',
    137137                        to_ping = '$to_ping',
    138138                        pinged = '$pinged',
    139                         post_modified = '$post_date',
    140                         post_modified_gmt = '$post_date_gmt',
     139                        post_modified = '".current_time('mysql')."',
     140                        post_modified_gmt = '".current_time('mysql',1)."',
    141141                        post_parent = '$post_parent',
    142142                        menu_order = '$menu_order'
    143143                        WHERE ID = $post_ID");