From d1c428faed56a4350ae1bba3fae831faa72aaaa1 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 4 Dec 2012 20:52:58 +0000 Subject: [PATCH] Media: When doing a multiple-insert into the editor, separate each inserted item with two line breaks. props tar.gz. see #22720. git-svn-id: https://develop.svn.wordpress.org/trunk@23042 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/media-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index a3ac9d7ca2..fe2c702dc6 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -401,7 +401,7 @@ var display = state.display( attachment ).toJSON(); return this.send.attachment( display, attachment.toJSON() ); }, this ) ).done( function() { - wp.media.editor.insert( _.toArray( arguments ).join('') ); + wp.media.editor.insert( _.toArray( arguments ).join("\n\n") ); }); }, this );