Ticket #1837: functions.php.2.diff
| File functions.php.2.diff, 1.2 KB (added by , 20 years ago) |
|---|
-
wp-includes/functions-post.php
136 136 post_name = '$post_name', 137 137 to_ping = '$to_ping', 138 138 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)."', 141 141 post_parent = '$post_parent', 142 142 menu_order = '$menu_order' 143 143 WHERE ID = $post_ID"); … … 283 283 if ( !isset($post_password) ) 284 284 $post_password = ''; 285 285 286 $post_modified = ( isset($edit_date) ) ? current_time('mysql') : $post_date; 287 $post_modified_gmt = ( isset($edit_date)) ? current_time('mysql',1) : $post_date_gmt; 288 286 289 if ($update) { 287 290 $wpdb->query( 288 291 "UPDATE $wpdb->posts SET … … 298 301 post_password = '$post_password', 299 302 post_name = '$post_name', 300 303 to_ping = '$to_ping', 301 post_modified = '$post_ date',302 post_modified_gmt = '$post_ date_gmt',304 post_modified = '$post_modified', 305 post_modified_gmt = '$post_modified_gmt', 303 306 post_parent = '$post_parent', 304 307 menu_order = '$menu_order', 305 308 post_mime_type = '$post_mime_type',