Don't pass embeds through the_content() when trying to render MCE previews, leverage WP_Embed and do_shortcode() instead.

Props kovshenin.
See #28195.


Built from https://develop.svn.wordpress.org/trunk@28580


git-svn-id: http://core.svn.wordpress.org/trunk@28405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor
2014-05-26 23:43:15 +00:00
parent b184336927
commit 89864b4a5a
4 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -708,7 +708,7 @@ window.wp = window.wp || {};
}
},
fetch: function () {
wp.ajax.send( 'filter-content', {
wp.ajax.send( 'parse-embed', {
data: {
post_ID: $( '#post_ID' ).val(),
content: this.shortcode.string()
+1 -1
View File
File diff suppressed because one or more lines are too long