From a93aae282c34f214586622e26c28036b479984d4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 20 Jul 2022 15:44:10 +0000 Subject: [PATCH] Docs: Add a `@since` note for `get_post_permalink()` returning `false` on failure. Follow-up to [53733]. See #45329. git-svn-id: https://develop.svn.wordpress.org/trunk@53734 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/link-template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index 3ddcc49e15..2933069025 100644 --- a/src/wp-includes/link-template.php +++ b/src/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. *