Changeset 5087 for trunk/wp-includes/post.php
- Timestamp:
- 03/23/2007 12:59:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r5086 r5087 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 … … 1257 1257 if ( !empty($ID) ) { 1258 1258 $update = true; 1259 $post_ID = $ID;1259 $post_ID = (int) $ID; 1260 1260 } 1261 1261 … … 1507 1507 if ( !$post =& get_post( $mime ) ) 1508 1508 return false; 1509 $post_id = $post->ID;1509 $post_id = (int) $post->ID; 1510 1510 $mime = $post->post_mime_type; 1511 1511 }
Note: See TracChangeset
for help on using the changeset viewer.