WordPress.org

Make WordPress Core

Changeset 29278


Ignore:
Timestamp:
07/23/2014 10:08:17 PM (7 years ago)
Author:
helen
Message:

Add support for attachment_fields_to_edit in the attachment details modal. props ericlewis. fixes #28991, see #24716.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

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

    r29271 r29278  
    441441                model:      this.model
    442442            });
     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
    443453            // Update browser url when navigating media details
    444454            if ( this.model ) {
  • trunk/src/wp-includes/js/media-views.js

    r29271 r29278  
    64076407    /**
    64086408     * wp.media.view.AttachmentCompat
     6409     *
     6410     * A view to display fields added via the `attachment_fields_to_edit` filter.
    64096411     *
    64106412     * @constructor
  • trunk/src/wp-includes/media-template.php

    r29266 r29278  
    387387                    </label>
    388388                <# } #>
     389                <div class="attachment-compat"></div>
    389390            </div>
    390391
Note: See TracChangeset for help on using the changeset viewer.