mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 02:04:26 +00:00
Preview future dated posts. Props davidhouse. fixes #1795
git-svn-id: https://develop.svn.wordpress.org/trunk@3001 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1404,6 +1404,12 @@ function is_subpost () {
|
||||
return $wp_query->is_subpost;
|
||||
}
|
||||
|
||||
function is_preview() {
|
||||
global $wp_query;
|
||||
|
||||
return $wp_query->is_preview;
|
||||
}
|
||||
|
||||
function is_archive () {
|
||||
global $wp_query;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user