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.



Built from https://develop.svn.wordpress.org/trunk@60054


git-svn-id: http://core.svn.wordpress.org/trunk@59390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Adam Silverstein
2025-03-19 16:27:28 +00:00
parent e2e78141bd
commit 3cc90101d3
3 changed files with 3 additions and 3 deletions

View File

@@ -5643,7 +5643,7 @@ Toolbar = View.extend(/** @lends wp.media.view.Toolbar.prototype */{
var requires = button.options.requires,
disabled = false,
modelsUploading = ! _.isEmpty( library.findWhere( { 'uploading': true } ) );
modelsUploading = library && ! _.isEmpty( library.findWhere( { 'uploading': true } ) );
// Prevent insertion of attachments if any of them are still uploading.
if ( selection && selection.models ) {

File diff suppressed because one or more lines are too long

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-beta3-60053';
$wp_version = '6.8-beta3-60054';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.