From 0e41b5d52fdc6af6442816b5f465c9db9f84e126 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:51:18 +0200 Subject: Adding upstream version 6.6.1+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/comment.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wp-includes/comment.php') diff --git a/wp-includes/comment.php b/wp-includes/comment.php index cca3901..748dd61 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -557,10 +557,11 @@ function wp_set_comment_cookies( $comment, $user, $cookies_consent = true ) { * Filters the lifetime of the comment cookie in seconds. * * @since 2.8.0 + * @since 6.6.0 The default $seconds value changed from 30000000 to YEAR_IN_SECONDS. * - * @param int $seconds Comment cookie lifetime. Default 30000000. + * @param int $seconds Comment cookie lifetime. Default YEAR_IN_SECONDS. */ - $comment_cookie_lifetime = time() + apply_filters( 'comment_cookie_lifetime', 30000000 ); + $comment_cookie_lifetime = time() + apply_filters( 'comment_cookie_lifetime', YEAR_IN_SECONDS ); $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); -- cgit v1.2.3