From 486602cfcaa47f139ca64d2ac5c938f5d706060a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 20 Jul 2022 15:46:09 +0000 Subject: [PATCH] Docs: Add a `@since` note for `get_post_permalink()` returning `false` on failure. Follow-up to [53733]. See #45329. Built from https://develop.svn.wordpress.org/trunk@53734 git-svn-id: http://core.svn.wordpress.org/trunk@53293 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 3ddcc49e15..2933069025 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -308,6 +308,7 @@ function get_permalink( $post = 0, $leavename = false ) { * Retrieves the permalink for a post of a custom post type. * * @since 3.0.0 + * @since 6.1.0 Returns false if the post does not exist. * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * diff --git a/wp-includes/version.php b/wp-includes/version.php index b133eb7184..554a987945 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53733'; +$wp_version = '6.1-alpha-53734'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.