Make WordPress Core

Ticket #27139: 27139.2.patch

File 27139.2.patch, 531 bytes (added by Fab1en, 9 years ago)

Refreshing the patch. @hereswhatidid solution is still valid and work for trunk.

  • src/wp-includes/js/media-views.js

    diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js
    index 5d2fe60..bcee5ae 100644
    a b Attachments = View.extend({ 
    35663566
    35673567                        // Record the initial `index` of the dragged model.
    35683568                        start: function( event, ui ) {
     3569                                // trigger the blur on any caption inputs currently in focus
     3570                                $( 'input.describe:focus').trigger( 'blur' );
    35693571                                ui.item.data('sortableIndexStart', ui.item.index());
    35703572                        },
    35713573