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

Built from https://develop.svn.wordpress.org/trunk@30438


git-svn-id: http://core.svn.wordpress.org/trunk@30433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-11-20 13:58:23 +00:00
parent 87023d64b4
commit 432e4dcb50
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ function press_it() {
// Error handling for media_sideload. // Error handling for media_sideload.
if ( is_wp_error($upload) ) { if ( is_wp_error($upload) ) {
wp_delete_post($post_ID); wp_delete_post($post_ID);
wp_die($upload); wp_die( esc_html( $upload->get_error_message() ) );
} else { } else {
// Post formats. // Post formats.
if ( isset( $_POST['post_format'] ) ) { if ( isset( $_POST['post_format'] ) ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.1-beta1-30435'; $wp_version = '4.1-beta1-30438';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.