Posts, Post Types: Use COOKIEPATH when clearing post password cookie, as that's the path it's created with.

See #44089.
Built from https://develop.svn.wordpress.org/trunk@43318


git-svn-id: http://core.svn.wordpress.org/trunk@43147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-05-27 01:33:22 +00:00
parent a724d77a4e
commit 0ff5536bac
2 changed files with 2 additions and 2 deletions

View File

@ -978,7 +978,7 @@ if ( ! function_exists( 'wp_clear_auth_cookie' ) ) :
setcookie( PASS_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
// Post password cookie
setcookie( 'wp-postpass_' . COOKIEHASH, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
setcookie( 'wp-postpass_' . COOKIEHASH, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
}
endif;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-43317';
$wp_version = '5.0-alpha-43318';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.