WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/25/2018 07:32:24 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Document more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-embed.php

    r42343 r42876  
    375375         * @since 2.9.0
    376376         *
    377          * @param array $post_types Array of post types to cache oEmbed results for. Defaults to post types with `show_ui` set to true.
     377         * @param string[] $post_types Array of post type names to cache oEmbed results for. Defaults to post types with `show_ui` set to true.
    378378         */
    379379        if ( empty( $post->ID ) || ! in_array( $post->post_type, apply_filters( 'embed_cache_oembed_types', $post_types ) ) ) {
Note: See TracChangeset for help on using the changeset viewer.