Changes from trunk/wp-includes/post.php at r15269 to branches/3.0/wp-includes/post.php at r15406
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-includes/post.php
r15269 r15406 2077 2077 2078 2078 $post = get_post($postid, $mode); 2079 2080 if ( 2081 ( OBJECT == $mode && empty( $post->ID ) ) || 2082 ( OBJECT != $mode && empty( $post['ID'] ) ) 2083 ) 2084 return ( OBJECT == $mode ? null : array() ); 2079 2085 2080 2086 // Set categories and tags … … 2419 2425 2420 2426 // Drafts shouldn't be assigned a date unless explicitly done so by the user 2421 if ( i n_array($post['post_status'], array('draft', 'pending', 'auto-draft')) && empty($postarr['edit_date']) &&2427 if ( isset( $post['post_status'] ) && in_array($post['post_status'], array('draft', 'pending', 'auto-draft')) && empty($postarr['edit_date']) && 2422 2428 ('0000-00-00 00:00:00' == $post['post_date_gmt']) ) 2423 2429 $clear_date = true; … … 2532 2538 $feeds = array(); 2533 2539 2534 $hierarchical_post_types = apply_filters( 'hierarchical_post_types', array( 'page') );2540 $hierarchical_post_types = get_post_types( array('hierarchical' => true) ); 2535 2541 if ( 'attachment' == $post_type ) { 2536 2542 // Attachment slugs must be unique across all types.
Note: See TracChangeset
for help on using the changeset viewer.