Make WordPress Core

Ticket #22817: 22817.diff

File 22817.diff, 559 bytes (added by lessbloat, 13 years ago)
  • wp-includes/js/media-views.js

     
    537537                        // automatically select any uploading attachments.
    538538                        if ( this.get('multiple') )
    539539                                this.get('selection').add( attachment );
     540                       
     541                        // If featured image, auto select one uploaded attachment
     542                        if ( 'featured-image' == this.get('id') )
     543                                this.get('selection').add( attachment );
    540544                },
    541545
    542546                saveContentMode: function() {