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:
Mark Jaquith 2012-12-06 06:35:13 +00:00
parent d5eafd1b1f
commit 1aca97360e
1 changed files with 3 additions and 25 deletions

View File

@ -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&hellip;'); ?>"
>{{ 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&hellip;'); ?>"
<# } else if ( 'audio' === data.type ) { #>
placeholder="<?php esc_attr_e('Describe this audio file&hellip;'); ?>"
<# } else { #>
placeholder="<?php esc_attr_e('Describe this media file&hellip;'); ?>"
<# } #>
<# } #>
/>
</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>