Make WordPress Core

Changeset 23087


Ignore:
Timestamp:
12/06/2012 03:36:17 AM (14 years ago)
Author:
nacin
Message:

Restore captions for non-image attachments. see #22759.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r23083 r23087  
    556556                                options = {
    557557                                        id:           attachment.id,
    558                                         post_content: attachment.description
     558                                        post_content: attachment.description,
     559                                        post_excerpt: caption,
    559560                                };
    560561
     
    564565                                if ( 'image' === attachment.type ) {
    565566                                        html = wp.media.string.image( props );
    566                                         options.post_excerpt = caption;
    567567
    568568                                        _.each({
  • trunk/wp-includes/media.php

    r23083 r23087  
    17521752                                />
    17531753                        </label>
     1754                        <label class="setting" data-setting="caption">
     1755                                <span><?php _e('Caption'); ?></span>
     1756                                <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
     1757                        </label>
    17541758                <# } #>
    17551759                        <label class="setting" data-setting="description">
Note: See TracChangeset for help on using the changeset viewer.