Make WordPress Core


Ignore:
Timestamp:
06/15/2016 11:22:52 AM (8 years ago)
Author:
swissspidy
Message:

Embeds: Improve performance when embedding a post from the current site.

When the post being embedded is from the same site, there's no reason to do an HTTP request for it. The data can be fetched directly using get_oembed_response_data().

Fixes #36767 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r37429 r37708  
    477477add_filter( 'oembed_dataparse',       'wp_filter_oembed_result',        10, 3 );
    478478add_filter( 'oembed_response_data',   'get_oembed_response_data_rich',  10, 4 );
     479add_filter( 'pre_oembed_result',      'wp_filter_pre_oembed_result',    10, 3 );
    479480
    480481unset( $filter, $action );
Note: See TracChangeset for help on using the changeset viewer.