Changeset 23083 for trunk/wp-includes/media.php
- Timestamp:
- 12/06/2012 12:41:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r23076 r23083 1396 1396 1397 1397 if ( function_exists('get_compat_media_markup') ) 1398 $response['compat'] = get_compat_media_markup( $attachment->ID, array( ' taxonomies' => true, 'description' => true ) );1398 $response['compat'] = get_compat_media_markup( $attachment->ID, array( 'in_modal' => true ) ); 1399 1399 1400 1400 return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta ); … … 1741 1741 <span><?php _e('Title'); ?></span> 1742 1742 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} 1743 <# if ( 'video' === data.type ) { #> 1744 placeholder="<?php esc_attr_e('Describe this video…'); ?>" 1745 <# } else if ( 'audio' === data.type ) { #> 1746 placeholder="<?php esc_attr_e('Describe this audio file…'); ?>" 1747 <# } else { #> 1748 placeholder="<?php esc_attr_e('Describe this media file…'); ?>" 1749 <# } #>/> 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 /> 1750 1753 </label> 1751 1754 <# } #> 1755 <label class="setting" data-setting="description"> 1756 <span><?php _e('Description'); ?></span> 1757 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> 1758 </label> 1752 1759 </script> 1753 1760
Note: See TracChangeset
for help on using the changeset viewer.