Remove the "Describe this ___" string on captions in the attachment details view. WP <3 patches with net red. props helenyhou. fixes #22777
git-svn-id: http://core.svn.wordpress.org/trunk@23097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d5eafd1b1f
commit
1aca97360e
|
@ -1744,42 +1744,20 @@ function wp_print_media_templates() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<#
|
<# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #>
|
||||||
var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly';
|
|
||||||
if ( 'image' === data.type ) { #>
|
|
||||||
<label class="setting" data-setting="title">
|
<label class="setting" data-setting="title">
|
||||||
<span><?php _e('Title'); ?></span>
|
<span><?php _e('Title'); ?></span>
|
||||||
<input type="text" value="{{ data.title }}" {{ maybeReadOnly }} />
|
<input type="text" value="{{ data.title }}" {{ maybeReadOnly }} />
|
||||||
</label>
|
</label>
|
||||||
<label class="setting" data-setting="caption">
|
<label class="setting" data-setting="caption">
|
||||||
<span><?php _e('Caption'); ?></span>
|
<span><?php _e('Caption'); ?></span>
|
||||||
<textarea {{ maybeReadOnly }}
|
<textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
|
||||||
placeholder="<?php esc_attr_e('Describe this image…'); ?>"
|
|
||||||
>{{ data.caption }}</textarea>
|
|
||||||
</label>
|
</label>
|
||||||
|
<# if ( 'image' === data.type ) { #>
|
||||||
<label class="setting" data-setting="alt">
|
<label class="setting" data-setting="alt">
|
||||||
<span><?php _e('Alt Text'); ?></span>
|
<span><?php _e('Alt Text'); ?></span>
|
||||||
<input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} />
|
<input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} />
|
||||||
</label>
|
</label>
|
||||||
<# } else { #>
|
|
||||||
<label class="setting" data-setting="title">
|
|
||||||
<span><?php _e('Title'); ?></span>
|
|
||||||
<input type="text" value="{{ data.title }}" {{ maybeReadOnly }}
|
|
||||||
<# if ( ! maybeReadOnly ) { #>
|
|
||||||
<# if ( 'video' === data.type ) { #>
|
|
||||||
placeholder="<?php esc_attr_e('Describe this video…'); ?>"
|
|
||||||
<# } else if ( 'audio' === data.type ) { #>
|
|
||||||
placeholder="<?php esc_attr_e('Describe this audio file…'); ?>"
|
|
||||||
<# } else { #>
|
|
||||||
placeholder="<?php esc_attr_e('Describe this media file…'); ?>"
|
|
||||||
<# } #>
|
|
||||||
<# } #>
|
|
||||||
/>
|
|
||||||
</label>
|
|
||||||
<label class="setting" data-setting="caption">
|
|
||||||
<span><?php _e('Caption'); ?></span>
|
|
||||||
<textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
|
|
||||||
</label>
|
|
||||||
<# } #>
|
<# } #>
|
||||||
<label class="setting" data-setting="description">
|
<label class="setting" data-setting="description">
|
||||||
<span><?php _e('Description'); ?></span>
|
<span><?php _e('Description'); ?></span>
|
||||||
|
|
Loading…
Reference in New Issue