Make WordPress Core

Changeset 23097


Ignore:
Timestamp:
12/06/2012 06:35:13 AM (14 years ago)
Author:
markjaquith
Message:

Remove the "Describe this _" string on captions in the attachment details view. WP <3 patches with net red. props helenyhou. fixes #22777

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r23096 r23097  
    17451745                </div>
    17461746
    1747                 <#
    1748                 var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly';
    1749                 if ( 'image' === data.type ) { #>
     1747                <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #>
    17501748                        <label class="setting" data-setting="title">
    17511749                                <span><?php _e('Title'); ?></span>
    … …  
    17541752                        <label class="setting" data-setting="caption">
    17551753                                <span><?php _e('Caption'); ?></span>
    1756                                 <textarea {{ maybeReadOnly }}
    1757                                         placeholder="<?php esc_attr_e('Describe this image&hellip;'); ?>"
    1758                                         >{{ data.caption }}</textarea>
     1754                                <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
    17591755                        </label>
     1756                <# if ( 'image' === data.type ) { #>
    17601757                        <label class="setting" data-setting="alt">
    17611758                                <span><?php _e('Alt Text'); ?></span>
    17621759                                <input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} />
    1763                         </label>
    1764                 <# } else { #>
    1765                         <label class="setting" data-setting="title">
    1766                                 <span><?php _e('Title'); ?></span>
    1767                                 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }}
    1768                                 <# if ( ! maybeReadOnly ) { #>
    1769                                         <# if ( 'video' === data.type ) { #>
    1770                                                 placeholder="<?php esc_attr_e('Describe this video&hellip;'); ?>"
    1771                                         <# } else if ( 'audio' === data.type ) { #>
    1772                                                 placeholder="<?php esc_attr_e('Describe this audio file&hellip;'); ?>"
    1773                                         <# } else { #>
    1774                                                 placeholder="<?php esc_attr_e('Describe this media file&hellip;'); ?>"
    1775                                         <# } #>
    1776                                 <# } #>
    1777                                 />
    1778                         </label>
    1779                         <label class="setting" data-setting="caption">
    1780                                 <span><?php _e('Caption'); ?></span>
    1781                                 <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
    17821760                        </label>
    17831761                <# } #>
Note: See TracChangeset for help on using the changeset viewer.