Ticket #22491: 22491.3.diff
File 22491.3.diff, 709 bytes (added by , 12 years ago) |
---|
-
wp-admin/edit-form-advanced.php
423 423 <script type="text/javascript"> 424 424 (function($){ 425 425 function getFieldsContent() { 426 return ($('#title').val() || '') + ($('#attachment_caption').val() || '') + 427 ($('#attachment_alt').val() || '') + ($('#attachment_content').val() || '') + ($('#post_name').val() || ''); 426 return $('#title, #attachment_caption, #attachment_alt, #attachment_content, #post_name').map( function() { 427 return $(this).val(); 428 }).get().join(','); 428 429 } 429 430 430 431 var initial = getFieldsContent();