Make WordPress Core

Changeset 21890


Ignore:
Timestamp:
09/18/2012 05:35:11 PM (13 years ago)
Author:
nacin
Message:

Clarify that conditional tags only return true for existing objects, not 404 situations. props SergeyBiryukov, fixes #16312.

File:
1 edited

Legend:

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

    r21862 r21890  
    129129
    130130/**
    131  * Is the query for an archive page?
     131 * Is the query for an existing archive page?
    132132 *
    133133 * Month, Year, Category, Author, Post Type archive...
     
    151151
    152152/**
    153  * Is the query for a post type archive page?
     153 * Is the query for an existing post type archive page?
    154154 *
    155155 * @see WP_Query::is_post_type_archive()
     
    172172
    173173/**
    174  * Is the query for an attachment page?
     174 * Is the query for an existing attachment page?
    175175 *
    176176 * @see WP_Query::is_attachment()
     
    192192
    193193/**
    194  * Is the query for an author archive page?
     194 * Is the query for an existing author archive page?
    195195 *
    196196 * If the $author parameter is specified, this function will additionally
     
    216216
    217217/**
    218  * Is the query for a category archive page?
     218 * Is the query for an existing category archive page?
    219219 *
    220220 * If the $category parameter is specified, this function will additionally
     
    240240
    241241/**
    242  * Is the query for a tag archive page?
     242 * Is the query for an existing tag archive page?
    243243 *
    244244 * If the $tag parameter is specified, this function will additionally
     
    264264
    265265/**
    266  * Is the query for a taxonomy archive page?
     266 * Is the query for an existing taxonomy archive page?
    267267 *
    268268 * If the $taxonomy parameter is specified, this function will additionally
     
    313313
    314314/**
    315  * Is the query for a date archive?
     315 * Is the query for an existing date archive?
    316316 *
    317317 * @see WP_Query::is_date()
     
    333333
    334334/**
    335  * Is the query for a day archive?
     335 * Is the query for an existing day archive?
    336336 *
    337337 * @see WP_Query::is_day()
     
    453453
    454454/**
    455  * Is the query for a month archive?
     455 * Is the query for an existing month archive?
    456456 *
    457457 * @see WP_Query::is_month()
     
    473473
    474474/**
    475  * Is the query for a single page?
     475 * Is the query for an existing single page?
    476476 *
    477477 * If the $page parameter is specified, this function will additionally
     
    580580
    581581/**
    582  * Is the query for a single post?
     582 * Is the query for an existing single post?
    583583 *
    584584 * Works for any post type, except attachments and pages
     
    609609
    610610/**
    611  * Is the query for a single post of any post type (post, attachment, page, ... )?
     611 * Is the query for an existing single post of any post type (post, attachment, page, ... )?
    612612 *
    613613 * If the $post_types parameter is specified, this function will additionally
     
    676676
    677677/**
    678  * Is the query for a specific year?
     678 * Is the query for an existing year archive?
    679679 *
    680680 * @see WP_Query::is_year()
     
    30413041
    30423042    /**
    3043      * Is the query for an archive page?
     3043     * Is the query for an existing archive page?
    30443044     *
    30453045     * Month, Year, Category, Author, Post Type archive...
     
    30543054
    30553055    /**
    3056      * Is the query for a post type archive page?
     3056     * Is the query for an existing post type archive page?
    30573057     *
    30583058     * @since 3.1.0
     
    30713071
    30723072    /**
    3073      * Is the query for an attachment page?
     3073     * Is the query for an existing attachment page?
    30743074     *
    30753075     * @since 3.1.0
     
    30823082
    30833083    /**
    3084      * Is the query for an author archive page?
     3084     * Is the query for an existing author archive page?
    30853085     *
    30863086     * If the $author parameter is specified, this function will additionally
     
    31143114
    31153115    /**
    3116      * Is the query for a category archive page?
     3116     * Is the query for an existing category archive page?
    31173117     *
    31183118     * If the $category parameter is specified, this function will additionally
     
    31463146
    31473147    /**
    3148      * Is the query for a tag archive page?
     3148     * Is the query for an existing tag archive page?
    31493149     *
    31503150     * If the $tag parameter is specified, this function will additionally
     
    31743174
    31753175    /**
    3176      * Is the query for a taxonomy archive page?
     3176     * Is the query for an existing taxonomy archive page?
    31773177     *
    31783178     * If the $taxonomy parameter is specified, this function will additionally
     
    32293229
    32303230    /**
    3231      * Is the query for a date archive?
     3231     * Is the query for an existing date archive?
    32323232     *
    32333233     * @since 3.1.0
     
    32403240
    32413241    /**
    3242      * Is the query for a day archive?
     3242     * Is the query for an existing day archive?
    32433243     *
    32443244     * @since 3.1.0
     
    33273327
    33283328    /**
    3329      * Is the query for a month archive?
     3329     * Is the query for an existing month archive?
    33303330     *
    33313331     * @since 3.1.0
     
    33383338
    33393339    /**
    3340      * Is the query for a single page?
     3340     * Is the query for an existing single page?
    33413341     *
    33423342     * If the $page parameter is specified, this function will additionally
     
    34173417
    34183418    /**
    3419      * Is the query for a single post?
     3419     * Is the query for an existing single post?
    34203420     *
    34213421     * Works for any post type, except attachments and pages
     
    34543454
    34553455    /**
    3456      * Is the query for a single post of any post type (post, attachment, page, ... )?
     3456     * Is the query for an existing single post of any post type (post, attachment, page, ... )?
    34573457     *
    34583458     * If the $post_types parameter is specified, this function will additionally
     
    34993499
    35003500    /**
    3501      * Is the query for a specific year?
     3501     * Is the query for an existing year archive?
    35023502     *
    35033503     * @since 3.1.0
Note: See TracChangeset for help on using the changeset viewer.