Make WordPress Core


Ignore:
Timestamp:
08/24/2004 01:24:48 AM (21 years ago)
Author:
rboren
Message:

Add is_year(), is_month(), is_day(), is_time().

File:
1 edited

Legend:

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

    r1555 r1556  
    16031603}
    16041604
     1605function is_year () {
     1606    global $wp_query;
     1607
     1608    return $wp_query->is_year;
     1609}
     1610
     1611function is_month () {
     1612    global $wp_query;
     1613
     1614    return $wp_query->is_month;
     1615}
     1616
     1617function is_day () {
     1618    global $wp_query;
     1619
     1620    return $wp_query->is_day;
     1621}
     1622
     1623function is_time () {
     1624    global $wp_query;
     1625
     1626    return $wp_query->is_time;
     1627}
     1628
    16051629function is_author () {
    16061630    global $wp_query;
Note: See TracChangeset for help on using the changeset viewer.