mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 07:04:34 +00:00
Docs: Document more parameters and properties using typed array notation.
See #41756 git-svn-id: https://develop.svn.wordpress.org/trunk@42876 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -374,7 +374,7 @@ class WP_Embed {
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @param array $post_types Array of post types to cache oEmbed results for. Defaults to post types with `show_ui` set to true.
|
||||
* @param string[] $post_types Array of post type names to cache oEmbed results for. Defaults to post types with `show_ui` set to true.
|
||||
*/
|
||||
if ( empty( $post->ID ) || ! in_array( $post->post_type, apply_filters( 'embed_cache_oembed_types', $post_types ) ) ) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user