Ticket #58416: 58416.patch
| File 58416.patch, 1.4 KB (added by , 3 years ago) |
|---|
-
src/js/media/views/attachment/details.js
75 75 * @return {void} 76 76 */ 77 77 initialize: function() { 78 79 // Prevent Enter in title textarea 80 $(document.body) 81 .on( 'keypress', '#attachment-details-two-column-title', function( event ) { 82 if ( event.key == 'Enter' ) { 83 return false; 84 } 85 }); 78 86 this.options = _.defaults( this.options, { 79 87 rerenderOnModelChange: false 80 88 }); -
src/wp-includes/media-template.php
509 509 <?php if ( post_type_supports( 'attachment', 'title' ) ) : ?> 510 510 <span class="setting" data-setting="title"> 511 511 <label for="attachment-details-two-column-title" class="name"><?php _e( 'Title' ); ?></label> 512 < input type="text" id="attachment-details-two-column-title" value="{{ data.title }}" {{ maybeReadOnly }} />512 <textarea id="attachment-details-two-column-title" aria-describedby="title-description" {{ maybeReadOnly }}>{{ data.title }}</textarea> 513 513 </span> 514 514 <?php endif; ?> 515 515 <# if ( 'audio' === data.type ) { #>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)