Make WordPress Core

Ticket #54411: 54411.diff

File 54411.diff, 465 bytes (added by joedolson, 9 months ago)

Change test to check whether upload button is replaced.

  • src/js/media/views/uploader/inline.js

     
    109109                        $placeholder = this.$('.browser-container');
    110110
    111111                        // Check if we've already replaced the placeholder.
    112                         if ( $placeholder[0] === $browser[0] ) {
     112                        if ( '' !== $browser.html().trim() ) {
    113113                                return;
    114114                        }
    115115