Make WordPress Core

Ticket #28185: 28185.4.diff

File 28185.4.diff, 1.1 KB (added by kevdotbadger, 10 years ago)
  • wp-includes/media-template.php

    diff --git wp-includes/media-template.php wp-includes/media-template.php
    index 86500ff..3099282 100644
    function wp_print_media_templates() { 
    891891                                        </div>
    892892                                </div>
    893893                                <div class="column-settings">
     894
     895                                        <# if ( data.attachment ) { #>                 
     896
     897                                                <label class="setting title">
     898                                                        <span><?php _e('Title'); ?></span>
     899                                                        <input type="text" value="{{ data.attachment.title }}" readonly />
     900                                                </label> 
     901
     902                                                <label class="setting attachment-path">
     903                                                        <span><?php _e('Attachment URL'); ?></span>
     904                                                        <input type="text" value="{{ data.model.url }}" readonly />
     905                                                </label> 
     906
     907                                        <# }else{ #>
     908
     909                                                <label class="setting attachment-path">
     910                                                        <span><?php _e('Attachment URL'); ?></span>
     911                                                        <input type="text" data-setting="url" value="{{ data.model.url }}" />
     912                                                </label>   
     913
     914                                        <# } #>
     915                               
    894916                                        <?php
    895917                                        /** This filter is documented in wp-admin/includes/media.php */
    896918                                        if ( ! apply_filters( 'disable_captions', '' ) ) : ?>