Changeset 28074 for branches/3.7/src/wp-admin/includes/post.php
- Timestamp:
- 04/11/2014 04:37:21 AM (11 years ago)
- Location:
- branches/3.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
- Property svn:mergeinfo changed
/branches/3.8 merged: 28073
- Property svn:mergeinfo changed
-
branches/3.7/src/wp-admin/includes/post.php
r27992 r28074 204 204 } 205 205 206 if ( ( empty( $post_data['action'] ) || 'autosave' != $post_data['action'] ) && 'auto-draft' == $post_data['post_status'] ) {207 $post_data['post_status'] = 'draft';208 }209 210 206 if ( isset($post_data['visibility']) ) { 211 207 switch ( $post_data['visibility'] ) { … … 227 223 if ( is_wp_error($post_data) ) 228 224 wp_die( $post_data->get_error_message() ); 225 226 if ( ( empty( $post_data['action'] ) || 'autosave' != $post_data['action'] ) && 'auto-draft' == $post_data['post_status'] ) { 227 $post_data['post_status'] = 'draft'; 228 } 229 229 230 230 // Post Formats
Note: See TracChangeset
for help on using the changeset viewer.