Make WordPress Core


Ignore:
Timestamp:
11/05/2012 04:47:04 PM (11 years ago)
Author:
nacin
Message:

Invalidate oEmbed caches on pre_post_update instead of save_post so existing metadata caches may be used. fixes #22190.

File:
1 edited

Legend:

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

    r21999 r22369  
    2626        add_filter( 'the_content', array( $this, 'autoembed' ), 8 );
    2727
    28         // After a post is saved, invalidate the oEmbed cache
    29         add_action( 'save_post', array( $this, 'delete_oembed_caches' ) );
     28        // When a post is saved, invalidate the oEmbed cache
     29        add_action( 'pre_post_update', array( $this, 'delete_oembed_caches' ) );
    3030
    3131        // After a post is saved, cache oEmbed items via AJAX
Note: See TracChangeset for help on using the changeset viewer.