Make WordPress Core


Ignore:
Timestamp:
11/06/2005 07:04:46 AM (18 years ago)
Author:
ryan
Message:

Preview future dated posts. Props davidhouse. fixes #1795

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r2977 r3001  
    14051405}
    14061406
     1407function is_preview() {
     1408    global $wp_query;
     1409   
     1410    return $wp_query->is_preview;
     1411}
     1412
    14071413function is_archive () {
    14081414    global $wp_query;
Note: See TracChangeset for help on using the changeset viewer.