mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Restore captions for non-image attachments. see #22759.
git-svn-id: http://core.svn.wordpress.org/trunk@23087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8efc323e2e
commit
e09094434e
@ -555,7 +555,8 @@
|
||||
|
||||
options = {
|
||||
id: attachment.id,
|
||||
post_content: attachment.description
|
||||
post_content: attachment.description,
|
||||
post_excerpt: caption,
|
||||
};
|
||||
|
||||
if ( props.linkUrl )
|
||||
@ -563,7 +564,6 @@
|
||||
|
||||
if ( 'image' === attachment.type ) {
|
||||
html = wp.media.string.image( props );
|
||||
options.post_excerpt = caption;
|
||||
|
||||
_.each({
|
||||
align: 'align',
|
||||
|
@ -1751,6 +1751,10 @@ function wp_print_media_templates() {
|
||||
<# } #>
|
||||
/>
|
||||
</label>
|
||||
<label class="setting" data-setting="caption">
|
||||
<span><?php _e('Caption'); ?></span>
|
||||
<textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
|
||||
</label>
|
||||
<# } #>
|
||||
<label class="setting" data-setting="description">
|
||||
<span><?php _e('Description'); ?></span>
|
||||
|
Loading…
Reference in New Issue
Block a user