Ticket #22759: 22759.7.diff

File 22759.7.diff, 1.1 KB (added by nacin, 6 months ago)
  • wp-includes/js/media-editor.js

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

     
    17511751                                <# } #> 
    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"> 
    17561760                                <span><?php _e('Description'); ?></span>