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

Props koopersmith, Chouby
fixes #22578


git-svn-id: http://core.svn.wordpress.org/trunk@22841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren 2012-11-26 15:05:14 +00:00
parent 8dc401468e
commit 7469f91bc7

View File

@ -3066,13 +3066,11 @@
priority: 80
}) );
if ( single.get('compat') ) {
sidebar.set( 'compat', new media.view.AttachmentCompat({
controller: this.controller,
model: single,
priority: 120
}) );
}
if ( this.options.display ) {
sidebar.set( 'display', new media.view.Settings.AttachmentDisplay({