Ticket #22777: 22777.diff
File 22777.diff, 2.0 KB (added by , 11 years ago) |
---|
-
wp-includes/media.php
1719 1719 </div> 1720 1720 </div> 1721 1721 1722 <# 1723 var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; 1724 if ( 'image' === data.type ) { #> 1722 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 1725 1723 <label class="setting" data-setting="title"> 1726 1724 <span><?php _e('Title'); ?></span> 1727 1725 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} /> 1728 1726 </label> 1729 1727 <label class="setting" data-setting="caption"> 1730 1728 <span><?php _e('Caption'); ?></span> 1731 <textarea {{ maybeReadOnly }} 1732 placeholder="<?php esc_attr_e('Describe this image…'); ?>" 1733 >{{ data.caption }}</textarea> 1729 <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea> 1734 1730 </label> 1731 <# if ( 'image' === data.type ) { #> 1735 1732 <label class="setting" data-setting="alt"> 1736 1733 <span><?php _e('Alt Text'); ?></span> 1737 1734 <input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} /> 1738 1735 </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…'); ?>"1746 <# } else if ( 'audio' === data.type ) { #>1747 placeholder="<?php esc_attr_e('Describe this audio file…'); ?>"1748 <# } else { #>1749 placeholder="<?php esc_attr_e('Describe this media file…'); ?>"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>1758 1736 <# } #> 1759 1737 <label class="setting" data-setting="description"> 1760 1738 <span><?php _e('Description'); ?></span>