Update post_modified when the post is changed. fixes #1837
git-svn-id: http://svn.automattic.com/wordpress/trunk@3357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
541c30cc70
commit
48f0f0a89e
|
@ -136,8 +136,8 @@ function wp_insert_post($postarr = array()) {
|
|||
post_name = '$post_name',
|
||||
to_ping = '$to_ping',
|
||||
pinged = '$pinged',
|
||||
post_modified = '$post_date',
|
||||
post_modified_gmt = '$post_date_gmt',
|
||||
post_modified = '".current_time('mysql')."',
|
||||
post_modified_gmt = '".current_time('mysql',1)."',
|
||||
post_parent = '$post_parent',
|
||||
menu_order = '$menu_order'
|
||||
WHERE ID = $post_ID");
|
||||
|
@ -310,8 +310,8 @@ function wp_insert_attachment($object, $file = false, $post_parent = 0) {
|
|||
post_name = '$post_name',
|
||||
to_ping = '$to_ping',
|
||||
pinged = '$pinged',
|
||||
post_modified = '$post_date',
|
||||
post_modified_gmt = '$post_date_gmt',
|
||||
post_modified = '".current_time('mysql')."',
|
||||
post_modified_gmt = '".current_time('mysql',1)."',
|
||||
post_parent = '$post_parent',
|
||||
menu_order = '$menu_order',
|
||||
post_mime_type = '$post_mime_type',
|
||||
|
|
Loading…
Reference in New Issue