Changeset 47550 for trunk/src/wp-includes/class-wp-embed.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-embed.php
r47122 r47550 371 371 372 372 $post_types = get_post_types( array( 'show_ui' => true ) ); 373 373 374 /** 374 375 * Filters the array of post types to cache oEmbed results for. … … 378 379 * @param string[] $post_types Array of post type names to cache oEmbed results for. Defaults to post types with `show_ui` set to true. 379 380 */ 380 if ( empty( $post->ID ) || ! in_array( $post->post_type, apply_filters( 'embed_cache_oembed_types', $post_types ) ) ) { 381 $cache_oembed_types = apply_filters( 'embed_cache_oembed_types', $post_types ); 382 383 if ( empty( $post->ID ) || ! in_array( $post->post_type, $cache_oembed_types, true ) ) { 381 384 return; 382 385 }
Note: See TracChangeset
for help on using the changeset viewer.