WordPress.org

Make WordPress Core

Ticket #22720: 22720.2.diff

File 22720.2.diff, 522 bytes (added by tar.gz, 2 years ago)

With double \n

  • wp-includes/js/media-editor.js

    diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js
    index a3ac9d7..fe2c702 100644
    a b  
    401401                                        var display = state.display( attachment ).toJSON(); 
    402402                                        return this.send.attachment( display, attachment.toJSON() ); 
    403403                                }, this ) ).done( function() { 
    404                                         wp.media.editor.insert( _.toArray( arguments ).join('') ); 
     404                                        wp.media.editor.insert( _.toArray( arguments ).join("\n\n") ); 
    405405                                }); 
    406406                        }, this ); 
    407407