From 07c079cc865331d856d98cd8ef8f6f9ba2a395de Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 19 Aug 2015 05:40:24 +0000 Subject: [PATCH] `WP_Embed::maybe_run_ajax_cache()` doesn't hook to pages, because it only happens on `'edit_form_advanced'`, not `'edit_page_form'`. Make sure it runs for pages as well. This was probably not intentional, see [29557]. Fixes #32418. Built from https://develop.svn.wordpress.org/trunk@33642 git-svn-id: http://core.svn.wordpress.org/trunk@33609 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-embed.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-embed.php b/wp-includes/class-wp-embed.php index 7405197094..d15a764e73 100644 --- a/wp-includes/class-wp-embed.php +++ b/wp-includes/class-wp-embed.php @@ -35,6 +35,7 @@ class WP_Embed { // After a post is saved, cache oEmbed items via AJAX add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) ); + add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index c40dd1ae87..837266b950 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33641'; +$wp_version = '4.4-alpha-33642'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.