WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/30/2011 10:52:29 PM (8 years ago)
Author:
azaozz
Message:

Prevent the uploader getting stuck when deleting the only image from the gallery, props ocean90, fixes #15118

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/media-upload.php

    r18674 r18850  
    118118
    119119    // let the action code decide how to handle the request
    120     if ( $tab == 'type' || $tab == 'type_url' )
     120    if ( $tab == 'type' || $tab == 'type_url' || ! array_key_exists( $tab , media_upload_tabs() ) )
    121121        do_action("media_upload_$type");
    122122    else
Note: See TracChangeset for help on using the changeset viewer.