From 432e4dcb5096dab62cd2425a237f1b8445314475 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 20 Nov 2014 13:58:23 +0000 Subject: [PATCH] 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 --- wp-admin/press-this.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 160a286642..6ae7341f34 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -63,7 +63,7 @@ function press_it() { // Error handling for media_sideload. if ( is_wp_error($upload) ) { wp_delete_post($post_ID); - wp_die($upload); + wp_die( esc_html( $upload->get_error_message() ) ); } else { // Post formats. if ( isset( $_POST['post_format'] ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index f0aa3860ec..542fb9312f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.