Docs: Document more parameters and properties using typed array notation.
See #41756 Built from https://develop.svn.wordpress.org/trunk@42876 git-svn-id: http://core.svn.wordpress.org/trunk@42706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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