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
This commit is contained in:
parent
3dff531717
commit
c33e16661d
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue