Changeset 6216
- Timestamp:
- 10/09/2007 11:16:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r6204 r6216 711 711 // expected_slashed (everything!) 712 712 $wpdb->query( 713 $wpdb->prepare(714 713 "UPDATE IGNORE $wpdb->posts SET 715 714 post_author = '$post_author', … … 730 729 post_modified = '".current_time('mysql')."', 731 730 post_modified_gmt = '".current_time('mysql',1)."', 732 post_parent = %d,731 post_parent = '$post_parent', 733 732 menu_order = '$menu_order' 734 WHERE ID = %d" 735 , $post_parent, $post_ID )); 733 WHERE ID = $post_ID"); 736 734 } else { 737 735 // expected_slashed (everything!) 738 736 $wpdb->query( 739 $wpdb->prepare(740 737 "INSERT IGNORE INTO $wpdb->posts 741 738 (post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt, post_status, post_type, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type) 742 739 VALUES 743 ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_content_filtered', '$post_title', '$post_excerpt', '$post_status', '$post_type', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', %d, '$menu_order', '$post_mime_type')", $post_parent));740 ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_content_filtered', '$post_title', '$post_excerpt', '$post_status', '$post_type', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type')"); 744 741 $post_ID = (int) $wpdb->insert_id; 745 742 } … … 1375 1372 // expected_slashed (everything!) 1376 1373 $wpdb->query( 1377 $wpdb->prepare(1378 1374 "UPDATE $wpdb->posts SET 1379 1375 post_author = '$post_author', … … 1394 1390 post_modified = '".current_time('mysql')."', 1395 1391 post_modified_gmt = '".current_time('mysql',1)."', 1396 post_parent = %d,1392 post_parent = '$post_parent', 1397 1393 menu_order = '$menu_order', 1398 1394 post_mime_type = '$post_mime_type', 1399 1395 guid = '$guid' 1400 WHERE ID = %d", $post_parent, $post_ID));1396 WHERE ID = $post_ID"); 1401 1397 } else { 1402 1398 // expected_slashed (everything!) 1403 1399 $wpdb->query( 1404 $wpdb->prepare(1405 1400 "INSERT INTO $wpdb->posts 1406 1401 (post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt, post_status, post_type, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type, guid) 1407 1402 VALUES 1408 ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_content_filtered', '$post_title', '$post_excerpt', '$post_status', '$post_type', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', %d, '$menu_order', '$post_mime_type', '$guid')", $post_parent ));1403 ('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_content_filtered', '$post_title', '$post_excerpt', '$post_status', '$post_type', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type', '$guid')"); 1409 1404 $post_ID = (int) $wpdb->insert_id; 1410 1405 }
Note: See TracChangeset
for help on using the changeset viewer.