Make WordPress Core


Ignore:
Timestamp:
03/23/2007 12:59:21 AM (18 years ago)
Author:
matt
Message:

(int)er the dragon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r5086 r5087  
    376376
    377377    if ( !$post_id )
    378         $post_id = $id;
     378        $post_id = (int) $id;
    379379
    380380    $post_id = (int) $post_id;
     
    540540    // Get the post ID.
    541541    if ( $update )
    542         $post_ID = $ID;
     542        $post_ID = (int) $ID;
    543543
    544544    // Create a valid post name.  Drafts are allowed to have an empty
     
    12571257    if ( !empty($ID) ) {
    12581258        $update = true;
    1259         $post_ID = $ID;
     1259        $post_ID = (int) $ID;
    12601260    }
    12611261
     
    15071507        if ( !$post =& get_post( $mime ) )
    15081508            return false;
    1509         $post_id = $post->ID;
     1509        $post_id = (int) $post->ID;
    15101510        $mime = $post->post_mime_type;
    15111511    }
Note: See TracChangeset for help on using the changeset viewer.