mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Prevent the uploader getting stuck when deleting the only image from the gallery, props ocean90, fixes #15118
git-svn-id: http://svn.automattic.com/wordpress/trunk@18850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e4605a562e
commit
d7a9037fec
@ -117,7 +117,7 @@ if ( isset($_GET['inline']) ) {
|
|||||||
$body_id = 'media-upload';
|
$body_id = 'media-upload';
|
||||||
|
|
||||||
// let the action code decide how to handle the request
|
// let the action code decide how to handle the request
|
||||||
if ( $tab == 'type' || $tab == 'type_url' )
|
if ( $tab == 'type' || $tab == 'type_url' || ! array_key_exists( $tab , media_upload_tabs() ) )
|
||||||
do_action("media_upload_$type");
|
do_action("media_upload_$type");
|
||||||
else
|
else
|
||||||
do_action("media_upload_$tab");
|
do_action("media_upload_$tab");
|
||||||
|
Loading…
Reference in New Issue
Block a user