Make WordPress Core


Ignore:
Timestamp:
02/21/2023 04:37:03 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document default values for optional parameters in various DocBlocks.

Props paulkevan, costdev, audrasjb, SergeyBiryukov.
See #56792.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-formats.php

    r49693 r55398  
    4242 * @since 3.1.0
    4343 *
    44  * @param string|string[]  $format Optional. The format or formats to check.
     44 * @param string|string[]  $format Optional. The format or formats to check. Default empty array.
    4545 * @param WP_Post|int|null $post   Optional. The post to check. Defaults to the current post in the loop.
    4646 * @return bool True if the post has any of the given formats (or any format, if no format specified),
Note: See TracChangeset for help on using the changeset viewer.