Make WordPress Core


Ignore:
Timestamp:
10/29/2015 11:10:46 PM (10 years ago)
Author:
pento
Message:

Embeds: Provide a cached text fallback.

Sometimes, embedded sites might suffer from less than 100% uptime. Instead of leaving the embedding site with a big blank space where the embed should be, let's fall back to a link to the embedded post, so there's at least some context for the post.

Fixes #34462.

File:
1 edited

Legend:

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

    r35436 r35437  
    166166add_filter( 'the_content_rss',    'ent2ncr',                    8 );
    167167add_filter( 'the_content_feed',   'wp_staticize_emoji'            );
     168add_filter( 'the_content_feed',   '_oembed_filter_feed_content'   );
    168169add_filter( 'the_excerpt_rss',    'convert_chars'                 );
    169170add_filter( 'the_excerpt_rss',    'ent2ncr',                    8 );
Note: See TracChangeset for help on using the changeset viewer.