diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js
index 449680b..82d500b 100644
a
|
b
|
|
440 | 440 | controller: this, |
441 | 441 | model: this.model |
442 | 442 | }); |
| 443 | |
| 444 | /** |
| 445 | * Attach a subview to display fields added via the |
| 446 | * `attachment_fields_to_edit` filter. |
| 447 | */ |
| 448 | contentRegion.view.views.set( '.attachment-compat', new media.view.AttachmentCompat({ |
| 449 | controller: this, |
| 450 | model: this.model |
| 451 | }) ); |
| 452 | |
443 | 453 | // Update browser url when navigating media details |
444 | 454 | if ( this.model ) { |
445 | 455 | this.gridRouter.navigate( this.gridRouter.baseUrl( '?item=' + this.model.id ) ); |
… |
… |
|
678 | 688 | } |
679 | 689 | }); |
680 | 690 | |
681 | | }(jQuery, _, Backbone, wp)); |
682 | | No newline at end of file |
| 691 | }(jQuery, _, Backbone, wp)); |
diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js
index ef3e787..f034d20 100644
a
|
b
|
|
6407 | 6407 | /** |
6408 | 6408 | * wp.media.view.AttachmentCompat |
6409 | 6409 | * |
| 6410 | * A view to display fields added via the `attachment_fields_to_edit` filter. |
| 6411 | * |
6410 | 6412 | * @constructor |
6411 | 6413 | * @augments wp.media.View |
6412 | 6414 | * @augments wp.Backbone.View |
diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index b130c4c..edea012 100644
a
|
b
|
function wp_print_media_templates() { |
386 | 386 | <span class="value"><a href="{{ data.uploadedToLink }}">{{ data.uploadedToTitle }}</a></span> |
387 | 387 | </label> |
388 | 388 | <# } #> |
| 389 | <div class="attachment-compat"></div> |
389 | 390 | </div> |
390 | 391 | |
391 | 392 | <a class="view-attachment" href="{{ data.link }}"><?php _e( 'View attachment page' ); ?></a> | |