Changeset 9596 for trunk/wp-admin/includes/post.php
- Timestamp:
- 11/10/2008 06:54:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r9570 r9596 26 26 if ( $update ) 27 27 $post_data['ID'] = (int) $post_data['post_ID']; 28 $post_data['post_content'] = $post_data['content'];29 $post_data['post_excerpt'] = $post_data['excerpt'];28 $post_data['post_content'] = isset($post_data['content']) ? $post_data['content'] : ''; 29 $post_data['post_excerpt'] = isset($post_data['excerpt']) ? $post_data['excerpt'] : ''; 30 30 $post_data['post_parent'] = isset($post_data['parent_id'])? $post_data['parent_id'] : ''; 31 31 if ( isset($post_data['trackback_url']) ) … … 72 72 $post_data['post_status'] = 'pending'; 73 73 74 $previous_status = get_post_field('post_status', $post_data['ID']);74 $previous_status = get_post_field('post_status', isset($post_data['ID']) ? $post_data['ID'] : $post_data['temp_ID']); 75 75 76 76 // Posts 'submitted for approval' present are submitted to $_POST the same as if they were being published.
Note: See TracChangeset
for help on using the changeset viewer.