diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index 0dbba58..122b216 100644
a
|
b
|
function wp_print_media_templates() { |
396 | 396 | </div> |
397 | 397 | |
398 | 398 | <div class="settings"> |
399 | | <label class="setting" data-setting="url"> |
400 | | <span class="name"><?php _e( 'URL' ); ?></span> |
401 | | <input type="text" value="{{ data.url }}" readonly /> |
402 | | </label> |
403 | 399 | <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> |
404 | 400 | <?php if ( post_type_supports( 'attachment', 'title' ) ) : ?> |
405 | 401 | <label class="setting" data-setting="title"> |
… |
… |
function wp_print_media_templates() { |
420 | 416 | </label> |
421 | 417 | <?php endforeach; ?> |
422 | 418 | <# } #> |
423 | | <label class="setting" data-setting="caption"> |
424 | | <span class="name"><?php _e( 'Caption' ); ?></span> |
425 | | <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea> |
426 | | </label> |
427 | 419 | <# if ( 'image' === data.type ) { #> |
428 | 420 | <label class="setting" data-setting="alt"> |
429 | 421 | <span class="name"><?php _e( 'Alt Text' ); ?></span> |
430 | 422 | <input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} /> |
| 423 | <span class="value"><?php _e( 'Describe the purpose of the image. Leave empty if the image is not a key part of the content.' ); ?></span> |
431 | 424 | </label> |
432 | 425 | <# } #> |
| 426 | <label class="setting" data-setting="caption"> |
| 427 | <span class="name"><?php _e( 'Caption' ); ?></span> |
| 428 | <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea> |
| 429 | </label> |
433 | 430 | <label class="setting" data-setting="description"> |
434 | 431 | <span class="name"><?php _e( 'Description' ); ?></span> |
435 | 432 | <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> |
… |
… |
function wp_print_media_templates() { |
448 | 445 | <# } #> |
449 | 446 | </div> |
450 | 447 | <# } #> |
| 448 | <label class="setting" data-setting="url"> |
| 449 | <span class="name"><?php _e( 'Permalink' ); ?></span> |
| 450 | <input type="text" value="{{ data.url }}" readonly /> |
| 451 | </label> |
451 | 452 | <div class="attachment-compat"></div> |
452 | 453 | </div> |
453 | 454 | |
… |
… |
function wp_print_media_templates() { |
579 | 580 | </div> |
580 | 581 | </div> |
581 | 582 | |
582 | | <label class="setting" data-setting="url"> |
583 | | <span class="name"><?php _e( 'URL' ); ?></span> |
584 | | <input type="text" value="{{ data.url }}" readonly /> |
585 | | </label> |
586 | 583 | <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> |
587 | 584 | <?php if ( post_type_supports( 'attachment', 'title' ) ) : ?> |
588 | 585 | <label class="setting" data-setting="title"> |
… |
… |
function wp_print_media_templates() { |
603 | 600 | </label> |
604 | 601 | <?php endforeach; ?> |
605 | 602 | <# } #> |
606 | | <label class="setting" data-setting="caption"> |
607 | | <span class="name"><?php _e( 'Caption' ); ?></span> |
608 | | <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea> |
609 | | </label> |
610 | 603 | <# if ( 'image' === data.type ) { #> |
611 | 604 | <label class="setting" data-setting="alt"> |
612 | 605 | <span class="name"><?php _e( 'Alt Text' ); ?></span> |
613 | 606 | <input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} /> |
| 607 | <span class="value"><?php _e( 'Describe the purpose of the image. Leave empty if the image is not a key part of the content.' ); ?></span> |
614 | 608 | </label> |
615 | 609 | <# } #> |
| 610 | <label class="setting" data-setting="caption"> |
| 611 | <span class="name"><?php _e( 'Caption' ); ?></span> |
| 612 | <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea> |
| 613 | </label> |
616 | 614 | <label class="setting" data-setting="description"> |
617 | 615 | <span class="name"><?php _e( 'Description' ); ?></span> |
618 | 616 | <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> |
619 | 617 | </label> |
| 618 | <label class="setting" data-setting="url"> |
| 619 | <span class="name"><?php _e( 'URL' ); ?></span> |
| 620 | <input type="text" value="{{ data.url }}" readonly /> |
| 621 | </label> |
620 | 622 | </script> |
621 | 623 | |
622 | 624 | <script type="text/html" id="tmpl-media-selection"> |