mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
8dc401468e
commit
7469f91bc7
@ -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