Make WordPress Core


Ignore:
Timestamp:
12/24/2005 05:34:50 AM (21 years ago)
Author:
ryan
Message:

MAke sure post_parent is valid.

File:
1 edited

Legend:

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

    r3353 r3354  
    273273        else
    274274                $to_ping = '';
    275        
    276         $post_parent = (int) $post_parent;
     275
     276        if ( isset($post_parent) )
     277                $post_parent = (int) $post_parent;
     278        else
     279                $post_parent = 0;
    277280
    278281        if ( isset($menu_order) )
Note: See TracChangeset for help on using the changeset viewer.