From 345397aafb008275bd51d744f970297a5c9ff754 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Tue, 21 Apr 2015 14:35:40 +0000 Subject: [PATCH] Avoid a PHP notice when adding an embed via Insert from URL. props iseulde. see #32006, #29476. git-svn-id: https://develop.svn.wordpress.org/trunk@32247 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/media-editor.js b/src/wp-includes/js/media-editor.js index a8576fae27..9d84a4b271 100644 --- a/src/wp-includes/js/media-editor.js +++ b/src/wp-includes/js/media-editor.js @@ -880,7 +880,7 @@ if ( 'link' === type ) { _.defaults( embed, { - linkText: embed.linkText, + linkText: embed.url, linkUrl: embed.url });