Make WordPress Core

Changeset 3357


Ignore:
Timestamp:
12/24/2005 08:04:59 PM (21 years ago)
Author:
ryan
Message:

Update post_modified when the post is changed. fixes #1837

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-post.php

    r3356 r3357  
    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'
     
    311311                        to_ping = '$to_ping',
    312312                        pinged = '$pinged',
    313                         post_modified = '$post_date',
    314                         post_modified_gmt = '$post_date_gmt',
     313                        post_modified = '".current_time('mysql')."',
     314                        post_modified_gmt = '".current_time('mysql',1)."',
    315315                        post_parent = '$post_parent',
    316316                        menu_order = '$menu_order',
Note: See TracChangeset for help on using the changeset viewer.