diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 6458fb0122..30fcb7cc87 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1139,7 +1139,7 @@ function update_meta( $meta_id, $meta_key, $meta_value ) { * @since 2.3.0 * @access private * - * @param int|object $post Post ID or post object. + * @param int|WP_Post $post Post ID or post object. * @return void|int|WP_Error Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success. */ function _fix_attachment_links( $post ) { diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index faf07a8003..dde12c1616 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -465,8 +465,8 @@ function _get_page_link( $post = false, $leavename = false, $sample = false ) { * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * - * @param int|object $post Optional. Post ID or object. Default uses the global `$post`. - * @param bool $leavename Optional. Whether to keep the page name. Default false. + * @param int|WP_Post $post Optional. Post ID or object. Default uses the global `$post`. + * @param bool $leavename Optional. Whether to keep the page name. Default false. * @return string The attachment permalink. */ function get_attachment_link( $post = null, $leavename = false ) { diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php index 282670bd21..2c199e6dc0 100644 --- a/wp-includes/post-formats.php +++ b/wp-includes/post-formats.php @@ -63,8 +63,8 @@ function has_post_format( $format = array(), $post = null ) { * * @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 ) { diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index f6635fdb4d..127f2919a1 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1861,8 +1861,8 @@ function get_page_template_slug( $post = null ) { * * @since 2.6.0 * - * @param int|object $revision Revision ID or revision object. - * @param bool $link Optional. Whether to link to revision's page. Default true. + * @param int|WP_Post $revision Revision ID or revision object. + * @param bool $link Optional. Whether to link to revision's page. Default true. * @return string|false i18n formatted datetimestamp or localized 'Current Revision'. */ function wp_post_revision_title( $revision, $link = true ) { @@ -1903,8 +1903,8 @@ function wp_post_revision_title( $revision, $link = true ) { * * @since 3.6.0 * - * @param int|object $revision Revision ID or revision object. - * @param bool $link Optional. Whether to link to revision's page. Default true. + * @param int|WP_Post $revision Revision ID or revision object. + * @param bool $link Optional. Whether to link to revision's page. Default true. * @return string|false gravatar, user, i18n formatted datetimestamp or localized 'Current Revision'. */ function wp_post_revision_title_expanded( $revision, $link = true ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 45d49c0688..e17b4ce99d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58211'; +$wp_version = '6.6-alpha-58212'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.