WordPress.org

Make WordPress Core

Changeset 23956


Ignore:
Timestamp:
04/10/2013 10:26:55 PM (7 years ago)
Author:
markjaquith
Message:

Don't allow images to be set as featured image until they have been processed.

props kadamwhite. fixes #23317.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r23590 r23956  
    24292429                    disabled = false;
    24302430
     2431                // Prevent insertion of attachments if any of them are still uploading
     2432                disabled = _.some( selection.models, function( attachment ) {
     2433                    return attachment.get('uploading') === true;
     2434                });
     2435
    24312436                if ( requires.selection && selection && ! selection.length )
    24322437                    disabled = true;
Note: See TracChangeset for help on using the changeset viewer.