Ticket #31808: 31808.diff
File 31808.diff, 713 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-press-this.php
137 137 $updated = wp_update_post( $post, true ); 138 138 139 139 if ( is_wp_error( $updated ) || intval( $updated ) < 1 ) { 140 wp_send_json_error( array( 'errorMessage' => __( 'Error while saving the post. Please try again later.') ) );140 wp_send_json_error( array( 'errorMessage' => $updated->get_error_message() ) ); 141 141 } else { 142 142 if ( isset( $post['post_format'] ) ) { 143 143 if ( current_theme_supports( 'post-formats', $post['post_format'] ) ) {