From bd5956087af561068ec44dc8ac360afa14a5a556 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: http://core.svn.wordpress.org/trunk@23042 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 );