From f629e70da3d50a7cc82526ecd538745ea3702839 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 19 Aug 2015 05:39:31 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@33642 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-embed.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/class-wp-embed.php b/src/wp-includes/class-wp-embed.php index 7405197094..d15a764e73 100644 --- a/src/wp-includes/class-wp-embed.php +++ b/src/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' ) ); } /**