summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-07 09:22:04 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-07 09:22:04 +0000
commit2deb7ed927ba4f38c7920e1d0fb82a85edc031fd (patch)
tree6e3f9b353a79a10e67602b88be98a274bcc8dfe0 /wp-inst/wp-includes/functions.php
parent99532e55fc2d3de5c265bc36976664d1eedbe2ea (diff)
Massive WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@417 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/functions.php')
-rw-r--r--wp-inst/wp-includes/functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/wp-inst/wp-includes/functions.php b/wp-inst/wp-includes/functions.php
index 88afb07..df336e3 100644
--- a/wp-inst/wp-includes/functions.php
+++ b/wp-inst/wp-includes/functions.php
@@ -1406,6 +1406,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;