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:
@@ -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()
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user