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:
parent
87023d64b4
commit
432e4dcb50
|
@ -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'] ) ) {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue