Ticket #10480: edit_result.diff
| File edit_result.diff, 1.5 KB (added by sirzooro, 4 years ago) |
|---|
-
wp-admin/admin-ajax.php
old new 1095 1095 $data['ping_status'] = 'closed'; 1096 1096 1097 1097 // update the post 1098 edit_post(); 1098 $result = edit_post(); 1099 if ( is_wp_error( $result ) ) { 1100 print $result->get_error_message(); 1101 die(); 1102 } 1099 1103 1100 1104 $post = array(); 1101 1105 if ( 'page' == $_POST['post_type'] ) { -
wp-admin/includes/post.php
old new 189 189 190 190 add_meta( $post_ID ); 191 191 192 wp_update_post( $post_data ); 192 $result = wp_update_post( $post_data ); 193 if ( is_wp_error( $result ) ) 194 return $result; 193 195 194 196 // Reunite any orphaned attachments with their parent 195 197 if ( !$draft_ids = get_user_option( 'autosave_draft_ids' ) ) -
wp-includes/post.php
old new 1518 1518 // expected_slashed (everything!) 1519 1519 $data = compact( array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_parent', 'menu_order', 'guid' ) ); 1520 1520 $data = apply_filters('wp_insert_post_data', $data, $postarr); 1521 if ( is_wp_error( $data ) ) 1522 return $data; 1521 1523 $data = stripslashes_deep( $data ); 1522 1524 $where = array( 'ID' => $post_ID ); 1523 1525