From 38cf369a7a781a1e462aae8c873ec72cdc625e21 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 27 Jul 2020 11:36:27 +0000 Subject: [PATCH] Posts, Post Types: Pass correct variable to the `get_lastpostdate` filter. Follow-up to [48634]. See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48635 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 6f1827ebf2..9a1aaeeb64 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -6634,7 +6634,7 @@ function get_lastpostdate( $timezone = 'server', $post_type = 'any' ) { * See get_lastpostdate() for accepted `$timezone` values. * @param string $post_type The post type to check. */ - return apply_filters( 'get_lastpostdate', $date, $timezone, $post_type ); + return apply_filters( 'get_lastpostdate', $lastpostdate, $timezone, $post_type ); } /**