WordPress.org

Make WordPress Core

Changeset 46081


Ignore:
Timestamp:
09/08/2019 02:27:51 AM (3 months ago)
Author:
azaozz
Message:

Upload: Reset the temp upload reference in Plupload when the file is not an image.

See #47872.

Location:
trunk/src/js/_enqueues/vendor/plupload
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/vendor/plupload/handlers.js

    r45934 r46081  
    602602                up.settings.multipart_params._wp_temp_image_ref = file.id;
    603603            } else {
    604                 unset( up.settings.multipart_params._wp_temp_image_ref );
     604                up.settings.multipart_params._wp_temp_image_ref = '';
    605605            }
    606606        } );
  • trunk/src/js/_enqueues/vendor/plupload/wp-plupload.js

    r45934 r46081  
    327327                up.settings.multipart_params._wp_temp_image_ref = file.id;
    328328            } else {
    329                 unset( up.settings.multipart_params._wp_temp_image_ref );
     329                up.settings.multipart_params._wp_temp_image_ref = '';
    330330            }
    331331        } );
Note: See TracChangeset for help on using the changeset viewer.