Make WordPress Core


Ignore:
Timestamp:
06/21/2016 02:41:05 PM (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().

Merge of [37708], [37710] and [37729] to the 4.4 branch.

Fixes #36767.

File:
1 edited

Legend:

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

    r35742 r37798  
    474474add_filter( 'oembed_dataparse',       'wp_filter_oembed_result',        10, 3 );
    475475add_filter( 'oembed_response_data',   'get_oembed_response_data_rich',  10, 4 );
     476add_filter( 'pre_oembed_result',      'wp_filter_pre_oembed_result',    10, 3 );
    476477
    477478unset( $filter, $action );
Note: See TracChangeset for help on using the changeset viewer.