Always render the attachment compat view. Assures attachment_fields_to_edit is always fired.
Props koopersmith, Chouby fixes #22578 git-svn-id: https://develop.svn.wordpress.org/trunk@22841 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8bf86e30f7
commit
65f7674216
@ -3066,13 +3066,11 @@
|
||||
priority: 80
|
||||
}) );
|
||||
|
||||
if ( single.get('compat') ) {
|
||||
sidebar.set( 'compat', new media.view.AttachmentCompat({
|
||||
controller: this.controller,
|
||||
model: single,
|
||||
priority: 120
|
||||
}) );
|
||||
}
|
||||
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({
|
||||
|
Loading…
Reference in New Issue
Block a user