WordPress.org

Make WordPress Core

Ticket #22491: 22491.3.diff

File 22491.3.diff, 709 bytes (added by SergeyBiryukov, 17 months ago)
  • wp-admin/edit-form-advanced.php

     
    423423<script type="text/javascript"> 
    424424(function($){ 
    425425        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(','); 
    428429        } 
    429430 
    430431        var initial = getFieldsContent();