From 1f8e6268d3c6f01f6afe93b8036c6115362d4d85 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 26 Oct 2015 23:55:26 +0000 Subject: [PATCH] Embeds: Add a CDATA and HTML comment wrapper around the JavaScript included in the embed HTML. This ensures that user agents which naively strip unwanted tags, without also stripping the content within those tages (for example, Slack), don't show the embed as a mess of JavaScript. Props peterwilsoncc. Fixes #34429. Built from https://develop.svn.wordpress.org/trunk@35406 git-svn-id: http://core.svn.wordpress.org/trunk@35370 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/embed-functions.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/embed-functions.php b/wp-includes/embed-functions.php index fed811ddd6..7b82824e4c 100644 --- a/wp-includes/embed-functions.php +++ b/wp-includes/embed-functions.php @@ -466,6 +466,7 @@ function get_post_embed_html( $post = null, $width, $height ) { $embed_url = get_post_embed_url( $post ); $output = ""; $output .= sprintf( diff --git a/wp-includes/version.php b/wp-includes/version.php index 90a876fe57..39ba67f720 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta1-35405'; +$wp_version = '4.4-beta1-35406'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.