- Timestamp:
- 08/14/2017 05:55:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-media-image.php
r41162 r41252 96 96 'media_prop' => 'link', 97 97 'description' => __( 'Link To' ), 98 'should_preview_update' => false,98 'should_preview_update' => true, 99 99 ), 100 100 'link_url' => array( … … 104 104 'media_prop' => 'linkUrl', 105 105 'description' => __( 'URL' ), 106 'should_preview_update' => false,106 'should_preview_update' => true, 107 107 ), 108 108 'image_classes' => array( … … 308 308 309 309 ?> 310 <script type="text/html" id="tmpl-wp-media-widget-image-fields"> 311 <# var elementIdPrefix = 'el' + String( Math.random() ) + '_'; #> 312 <# if ( data.url ) { #> 313 <p class="media-widget-image-link"> 314 <label for="{{ elementIdPrefix }}linkUrl"><?php esc_html_e( 'Link to:' ); ?></label> 315 <input id="{{ elementIdPrefix }}linkUrl" type="url" class="widefat link" value="{{ data.link_url }}" placeholder="http://"> 316 </p> 317 <# } #> 318 </script> 310 319 <script type="text/html" id="tmpl-wp-media-widget-image-preview"> 311 <# 312 var describedById = 'describedBy-' + String( Math.random() ); 313 #> 320 <# var describedById = 'describedBy-' + String( Math.random() ); #> 314 321 <# if ( data.error && 'missing_attachment' === data.error ) { #> 315 322 <div class="notice notice-error notice-alt notice-missing-attachment">
Note: See TracChangeset
for help on using the changeset viewer.