WordPress.org

Make WordPress Core

Ticket #31808: 31808.diff

File 31808.diff, 713 bytes (added by stephdau, 6 years ago)
  • src/wp-admin/includes/class-wp-press-this.php

     
    137137                $updated = wp_update_post( $post, true );
    138138
    139139                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() ) );
    141141                } else {
    142142                        if ( isset( $post['post_format'] ) ) {
    143143                                if ( current_theme_supports( 'post-formats', $post['post_format'] ) ) {