WordPress.org

Make WordPress Core

Ticket #50325: 50325.diff

File 50325.diff, 564 bytes (added by Shital Patel, 18 months ago)

error message changed

  • wp-includes/post.php

     
    39803980                }
    39813981                if ( false === $wpdb->insert( $wpdb->posts, $data ) ) {
    39823982                        if ( $wp_error ) {
    3983                                 return new WP_Error( 'db_insert_error', __( 'Could not insert post into the database' ), $wpdb->last_error );
     3983                                return new WP_Error( 'db_insert_error', __( 'Your file could not be uploaded for some reason' ), $wpdb->last_error );
    39843984                        } else {
    39853985                                return 0;
    39863986                        }