Make WordPress Core

Ticket #22777: 22777.diff

File 22777.diff, 2.0 KB (added by helenyhou, 11 years ago)
  • wp-includes/media.php

     
    17191719                        </div>
    17201720                </div>
    17211721
    1722                 <#
    1723                 var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly';
    1724                 if ( 'image' === data.type ) { #>
     1722                <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #>
    17251723                        <label class="setting" data-setting="title">
    17261724                                <span><?php _e('Title'); ?></span>
    17271725                                <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} />
    17281726                        </label>
    17291727                        <label class="setting" data-setting="caption">
    17301728                                <span><?php _e('Caption'); ?></span>
    1731                                 <textarea {{ maybeReadOnly }}
    1732                                         placeholder="<?php esc_attr_e('Describe this image&hellip;'); ?>"
    1733                                         >{{ data.caption }}</textarea>
     1729                                <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
    17341730                        </label>
     1731                <# if ( 'image' === data.type ) { #>
    17351732                        <label class="setting" data-setting="alt">
    17361733                                <span><?php _e('Alt Text'); ?></span>
    17371734                                <input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} />
    17381735                        </label>
    1739                 <# } else { #>
    1740                         <label class="setting" data-setting="title">
    1741                                 <span><?php _e('Title'); ?></span>
    1742                                 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }}
    1743                                 <# if ( ! maybeReadOnly ) { #>
    1744                                         <# if ( 'video' === data.type ) { #>
    1745                                                 placeholder="<?php esc_attr_e('Describe this video&hellip;'); ?>"
    1746                                         <# } else if ( 'audio' === data.type ) { #>
    1747                                                 placeholder="<?php esc_attr_e('Describe this audio file&hellip;'); ?>"
    1748                                         <# } else { #>
    1749                                                 placeholder="<?php esc_attr_e('Describe this media file&hellip;'); ?>"
    1750                                         <# } #>
    1751                                 <# } #>
    1752                                 />
    1753                         </label>
    1754                         <label class="setting" data-setting="caption">
    1755                                 <span><?php _e('Caption'); ?></span>
    1756                                 <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>
    1757                         </label>
    17581736                <# } #>
    17591737                        <label class="setting" data-setting="description">
    17601738                                <span><?php _e('Description'); ?></span>