mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 07:51:49 +01:00
Add get_lastpostdate and 'get_lastpostdatemodified filters. Props rob1n. fixes #4801
git-svn-id: http://svn.automattic.com/wordpress/trunk@5918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
02df4f722c
commit
200f0b020f
@ -1670,7 +1670,7 @@ function get_lastpostdate($timezone = 'server') {
|
|||||||
} else {
|
} else {
|
||||||
$lastpostdate = $cache_lastpostdate[$blog_id][$timezone];
|
$lastpostdate = $cache_lastpostdate[$blog_id][$timezone];
|
||||||
}
|
}
|
||||||
return $lastpostdate;
|
return apply_filters( 'get_lastpostdate', $lastpostdate );
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_lastpostmodified($timezone = 'server') {
|
function get_lastpostmodified($timezone = 'server') {
|
||||||
@ -1697,7 +1697,7 @@ function get_lastpostmodified($timezone = 'server') {
|
|||||||
} else {
|
} else {
|
||||||
$lastpostmodified = $cache_lastpostmodified[$blog_id][$timezone];
|
$lastpostmodified = $cache_lastpostmodified[$blog_id][$timezone];
|
||||||
}
|
}
|
||||||
return $lastpostmodified;
|
return apply_filters( 'get_lastpostmodified', $lastpostmodified );
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user