From c33e16661d6f2e82ad6d12c168d9521eae64326a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 22 Sep 2017 18:33:11 +0000 Subject: [PATCH] Docs: Correct filename references in duplicate hook comments for `post_password_required` filter. Props coffee2code. Fixes #41959. git-svn-id: https://develop.svn.wordpress.org/trunk@41567 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 37343733d1..7d7786abcb 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -784,12 +784,12 @@ function post_password_required( $post = null ) { $post = get_post($post); if ( empty( $post->post_password ) ) { - /** This filter is documented in wp-includes/post.php */ + /** This filter is documented in wp-includes/post-template.php */ return apply_filters( 'post_password_required', false, $post ); } if ( ! isset( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] ) ) { - /** This filter is documented in wp-includes/post.php */ + /** This filter is documented in wp-includes/post-template.php */ return apply_filters( 'post_password_required', true, $post ); }