WordPress.org

Make WordPress Core

Changeset 30438


Ignore:
Timestamp:
11/20/2014 01:57:12 PM (6 years ago)
Author:
nacin
Message:

Press This: Ensure the error message is printed. props johnbillion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/press-this.php

    r30356 r30438  
    6464    if ( is_wp_error($upload) ) {
    6565        wp_delete_post($post_ID);
    66         wp_die($upload);
     66        wp_die( esc_html( $upload->get_error_message() ) );
    6767    } else {
    6868        // Post formats.
Note: See TracChangeset for help on using the changeset viewer.