Changeset 15406 for branches/3.0/wp-includes/post.php
- Timestamp:
- 07/13/2010 09:30:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-includes/post.php
r15349 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;
Note: See TracChangeset
for help on using the changeset viewer.