Ticket #24289: 24289.diff
File 24289.diff, 958 bytes (added by , 12 years ago) |
---|
-
wp-admin/js/post-formats.js
32 32 } 33 33 34 34 function imageFormatUploadSuccess( attachment ) { 35 var $holder, $field, html = wp.media.string.image({ 36 size : 'full', 37 align : false, 38 link : getUserSetting( 'urlbutton' ) 39 }, attachment.attributes ); 35 var $holder, $field, html = attachment.attributes.url; 40 36 41 37 $holder = $('.wp-format-media-holder[data-format=image]'); 42 38 $( '.media-progress-bar', $holder ).remove(); … … 310 306 // show one preview at a time 311 307 mediaPreview( attachment ); 312 308 } else { 313 html = wp.media.string.image({ 314 size: 'full', 315 align : false, 316 link : getUserSetting( 'urlbutton' ) 317 }, attachment); 309 html = attachment.url; 318 310 319 311 // set the hidden input's value 320 312 $field.val( html );