summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/functions.php
diff options
context:
space:
mode:
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;