WordPress.org

Make WordPress Core

Changeset 22841


Ignore:
Timestamp:
11/26/12 15:05:14 (17 months ago)
Author:
ryan
Message:

Always render the attachment compat view. Assures attachment_fields_to_edit is always fired.

Props koopersmith, Chouby
fixes #22578

File:
1 edited

Legend:

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

    r22836 r22841  
    30673067            }) ); 
    30683068 
    3069             if ( single.get('compat') ) { 
    3070                 sidebar.set( 'compat', new media.view.AttachmentCompat({ 
    3071                     controller: this.controller, 
    3072                     model:      single, 
    3073                     priority:   120 
    3074                 }) ); 
    3075             } 
     3069            sidebar.set( 'compat', new media.view.AttachmentCompat({ 
     3070                controller: this.controller, 
     3071                model:      single, 
     3072                priority:   120 
     3073            }) ); 
    30763074 
    30773075            if ( this.options.display ) { 
Note: See TracChangeset for help on using the changeset viewer.