mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-11 22:29:48 +01:00
Docs: Correct filename references in duplicate hook comments for post_password_required
filter.
Props coffee2code. Fixes #41959. Built from https://develop.svn.wordpress.org/trunk@41567 git-svn-id: http://core.svn.wordpress.org/trunk@41400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2dcfa5278
commit
ba67e5f09c
@ -784,12 +784,12 @@ function post_password_required( $post = null ) {
|
|||||||
$post = get_post($post);
|
$post = get_post($post);
|
||||||
|
|
||||||
if ( empty( $post->post_password ) ) {
|
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 );
|
return apply_filters( 'post_password_required', false, $post );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! isset( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] ) ) {
|
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 );
|
return apply_filters( 'post_password_required', true, $post );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41566';
|
$wp_version = '4.9-alpha-41567';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user