From 94c9edd8d4a1fbe8c5d710d67019623e72910aa9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 14 Sep 2016 21:36:18 +0000 Subject: [PATCH] Docs: Add a `@since` entry for the `post_password_required` filter introduced in [38603]. Use a third-person singular verb for the filter description. See #38056. git-svn-id: https://develop.svn.wordpress.org/trunk@38604 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-template.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index c315df2a51..0c1d1e4bf7 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -799,11 +799,13 @@ function post_password_required( $post = null ) { } /** - * Filter whether a post requires the user to supply a password. + * Filters whether a post requires the user to supply a password. + * + * @since 4.7.0 * * @param bool $required Whether the user needs to supply a password. True if password has not been * provided or is incorrect, false if password has been supplied or is not required. - * @param WP_Post $post Post data. + * @param WP_Post $post Post data. */ return apply_filters( 'post_password_required', $required, $post ); }