Changeset 5092 for branches/2.1/wp-includes/post.php
- Timestamp:
- 03/23/2007 03:18:00 AM (19 years ago)
- File:
-
- 1 edited
-
branches/2.1/wp-includes/post.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/wp-includes/post.php
r5085 r5092 376 376 377 377 if ( !$post_id ) 378 $post_id = $id;378 $post_id = (int) $id; 379 379 380 380 $post_id = (int) $post_id; … … 540 540 // Get the post ID. 541 541 if ( $update ) 542 $post_ID = $ID;542 $post_ID = (int) $ID; 543 543 544 544 // Create a valid post name. Drafts are allowed to have an empty … … 644 644 VALUES 645 645 ('$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')"); 646 $post_ID = $wpdb->insert_id;646 $post_ID = (int) $wpdb->insert_id; 647 647 } 648 648 … … 1255 1255 if ( !empty($ID) ) { 1256 1256 $update = true; 1257 $post_ID = $ID;1257 $post_ID = (int) $ID; 1258 1258 } 1259 1259 … … 1350 1350 VALUES 1351 1351 ('$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')"); 1352 $post_ID = $wpdb->insert_id;1352 $post_ID = (int) $wpdb->insert_id; 1353 1353 } 1354 1354 … … 1505 1505 if ( !$post =& get_post( $mime ) ) 1506 1506 return false; 1507 $post_id = $post->ID;1507 $post_id = (int) $post->ID; 1508 1508 $mime = $post->post_mime_type; 1509 1509 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)