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:
@@ -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 ) {
|
||||
|
||||
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user