Ticket #43178: 43178-v1.diff
File 43178-v1.diff, 3.5 KB (added by , 6 years ago) |
---|
-
wp-admin/includes/media.php
2996 2996 </div> 2997 2997 <div class="wp_attachment_details edit-form-section"> 2998 2998 <p> 2999 <label for="attachment_caption"><strong><?php _e( 'Caption' ); ?></strong></label><br /> 2999 <label for="attachment_caption"><strong> 3000 <?php 3001 if ( 'video' === $media_type = substr( $post->post_mime_type, 0, 5 ) ) { 3002 _e( 'Media Description' ); 3003 } elseif ( 'image' === $media_type = substr( $post->post_mime_type, 0, 5 ) ) { 3004 _e( 'Image Caption' ); 3005 } else { 3006 _e( 'Media Caption' ); 3007 } ?> 3008 </strong></label><br /> 3000 3009 <textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo $post->post_excerpt; ?></textarea> 3001 3010 </p> 3002 3011 -
wp-includes/css/media-views.css
366 366 367 367 .media-sidebar .setting span, 368 368 .attachment-details .setting span { 369 max-width: 78px; 369 370 min-width: 30%; 370 371 margin-right: 4%; 371 372 font-size: 12px; -
wp-includes/media-template.php
403 403 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 404 404 <?php if ( post_type_supports( 'attachment', 'title' ) ) : ?> 405 405 <label class="setting" data-setting="title"> 406 <span class="name"><?php _e( ' Title' ); ?></span>406 <span class="name"><?php _e( 'Media Title' ); ?></span> 407 407 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} /> 408 408 </label> 409 409 <?php endif; ?> … … 421 421 <?php endforeach; ?> 422 422 <# } #> 423 423 <label class="setting" data-setting="caption"> 424 <span class="name"><?php _e( 'Caption' ); ?></span> 424 <# if ( 'video' === data.type ) { #> 425 <span class="name"><?php _e( 'Media Description' ); ?></span> 426 <# } else if ( 'image' === data.type ) { #> 427 <span class="name"><?php _e( 'Image Caption' ); ?></span> 428 <# } else { #> 429 <span class="name"><?php _e( 'Media Caption' ); ?></span> 430 <# } #> 425 431 <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea> 426 432 </label> 427 433 <# if ( 'image' === data.type ) { #> … … 431 437 </label> 432 438 <# } #> 433 439 <label class="setting" data-setting="description"> 434 <span class="name"><?php _e( ' Description' ); ?></span>440 <span class="name"><?php _e( 'Media Description' ); ?></span> 435 441 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> 436 442 </label> 437 443 <div class="setting"> … … 586 592 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 587 593 <?php if ( post_type_supports( 'attachment', 'title' ) ) : ?> 588 594 <label class="setting" data-setting="title"> 589 <span class="name"><?php _e( ' Title' ); ?></span>595 <span class="name"><?php _e( 'Media Title' ); ?></span> 590 596 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} /> 591 597 </label> 592 598 <?php endif; ?> … … 614 620 </label> 615 621 <# } #> 616 622 <label class="setting" data-setting="description"> 617 <span class="name"><?php _e( ' Description' ); ?></span>623 <span class="name"><?php _e( 'Media Description' ); ?></span> 618 624 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> 619 625 </label> 620 626 </script>