From e77ed87b6c0f0b3530efca79499527617ed5c30c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 22 Aug 2007 22:30:06 +0000 Subject: [PATCH] Add get_lastpostdate and 'get_lastpostdatemodified filters. Props rob1n. fixes #4801 git-svn-id: https://develop.svn.wordpress.org/trunk@5918 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index cf5d228ccb..72448a1d26 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1670,7 +1670,7 @@ function get_lastpostdate($timezone = 'server') { } else { $lastpostdate = $cache_lastpostdate[$blog_id][$timezone]; } - return $lastpostdate; + return apply_filters( 'get_lastpostdate', $lastpostdate ); } function get_lastpostmodified($timezone = 'server') { @@ -1697,7 +1697,7 @@ function get_lastpostmodified($timezone = 'server') { } else { $lastpostmodified = $cache_lastpostmodified[$blog_id][$timezone]; } - return $lastpostmodified; + return apply_filters( 'get_lastpostmodified', $lastpostmodified ); } //