Make WordPress Core

Changeset 60054


Ignore:
Timestamp:
03/19/2025 04:25:55 PM (8 months ago)
Author:
adamsilverstein
Message:

Customizer: fix logo cropping.

Address a failure in the customizer site logo cropping after r60031. Check to ensure library exists before the call to findWhere.

Follow up to r60031.

Props: domainsupport, joemcgill, joedolson, kawsar007, addweb-solution-pvt-ltd, mukesh27.

Fixes #63121.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/media/views/toolbar.js

    r60031 r60054  
    145145            var requires = button.options.requires,
    146146                disabled = false,
    147                 modelsUploading = ! _.isEmpty( library.findWhere( { 'uploading': true } ) );
     147                modelsUploading = library && ! _.isEmpty( library.findWhere( { 'uploading': true } ) );
    148148
    149149            // Prevent insertion of attachments if any of them are still uploading.
Note: See TracChangeset for help on using the changeset viewer.