Make WordPress Core


Ignore:
Timestamp:
08/19/2015 05:39:31 AM (9 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-embed.php

    r33470 r33642  
    3636        // After a post is saved, cache oEmbed items via AJAX
    3737        add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) );
     38        add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) );
    3839    }
    3940
Note: See TracChangeset for help on using the changeset viewer.