diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/post-formats.php --- a/wp/wp-includes/post-formats.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/post-formats.php Fri Sep 05 18:40:08 2025 +0200 @@ -41,7 +41,7 @@ * * @since 3.1.0 * - * @param string|string[] $format Optional. The format or formats to check. + * @param string|string[] $format Optional. The format or formats to check. Default empty array. * @param WP_Post|int|null $post Optional. The post to check. Defaults to the current post in the loop. * @return bool True if the post has any of the given formats (or any format, if no format specified), * false otherwise. @@ -63,8 +63,8 @@ * * @since 3.1.0 * - * @param int|object $post The post for which to assign a format. - * @param string $format A format to assign. Use an empty string or array to remove all formats from the post. + * @param int|WP_Post $post The post for which to assign a format. + * @param string $format A format to assign. Use an empty string or array to remove all formats from the post. * @return array|WP_Error|false Array of affected term IDs on success. WP_Error on error. */ function set_post_format( $post, $format ) {