Ticket #23665: 23665.diff
File 23665.diff, 827 bytes (added by , 11 years ago) |
---|
-
wp-admin/includes/ajax-actions.php
1075 1075 $id = $post->ID; 1076 1076 } 1077 1077 1078 // When is_wp_error($id), $id overwrites $data in WP_Ajax_Response1079 // todo: Needs review. The errors generated in WP_Ajax_Response and parsed with wpAjax.parseAjaxResponse() haven't been used for years.1080 1078 if ( ! is_wp_error($id) ) { 1081 1079 /* translators: draft saved date format, see http://php.net/date */ 1082 1080 $draft_saved_date_format = __('g:i:s a'); … … 1090 1088 $id = $post->ID; 1091 1089 } 1092 1090 1091 // Consider exposing any errors, rather than having 'Saving draft...' 1093 1092 $x = new WP_Ajax_Response( array( 1094 1093 'what' => 'autosave', 1095 1094 'id' => $id,