WordPress.org

Make WordPress Core

Ticket #16312: 16312.patch

File 16312.patch, 6.1 KB (added by SergeyBiryukov, 3 years ago)
  • wp-includes/query.php

     
    129129 */ 
    130130 
    131131/** 
    132  * Is the query for an archive page? 
     132 * Is the query for an existing archive page? 
    133133 * 
    134134 * Month, Year, Category, Author, Post Type archive... 
    135135 * 
     
    151151} 
    152152 
    153153/** 
    154  * Is the query for a post type archive page? 
     154 * Is the query for an existing post type archive page? 
    155155 * 
    156156 * @see WP_Query::is_post_type_archive() 
    157157 * @since 3.1.0 
     
    172172} 
    173173 
    174174/** 
    175  * Is the query for an attachment page? 
     175 * Is the query for an existing attachment page? 
    176176 * 
    177177 * @see WP_Query::is_attachment() 
    178178 * @since 2.0.0 
     
    192192} 
    193193 
    194194/** 
    195  * Is the query for an author archive page? 
     195 * Is the query for an existing author archive page? 
    196196 * 
    197197 * If the $author parameter is specified, this function will additionally 
    198198 * check if the query is for one of the authors specified. 
     
    216216} 
    217217 
    218218/** 
    219  * Is the query for a category archive page? 
     219 * Is the query for an existing category archive page? 
    220220 * 
    221221 * If the $category parameter is specified, this function will additionally 
    222222 * check if the query is for one of the categories specified. 
     
    240240} 
    241241 
    242242/** 
    243  * Is the query for a tag archive page? 
     243 * Is the query for an existing tag archive page? 
    244244 * 
    245245 * If the $tag parameter is specified, this function will additionally 
    246246 * check if the query is for one of the tags specified. 
     
    264264} 
    265265 
    266266/** 
    267  * Is the query for a taxonomy archive page? 
     267 * Is the query for an existing taxonomy archive page? 
    268268 * 
    269269 * If the $taxonomy parameter is specified, this function will additionally 
    270270 * check if the query is for that specific $taxonomy. 
     
    313313} 
    314314 
    315315/** 
    316  * Is the query for a date archive? 
     316 * Is the query for an existing date archive? 
    317317 * 
    318318 * @see WP_Query::is_date() 
    319319 * @since 1.5.0 
     
    333333} 
    334334 
    335335/** 
    336  * Is the query for a day archive? 
     336 * Is the query for an existing day archive? 
    337337 * 
    338338 * @see WP_Query::is_day() 
    339339 * @since 1.5.0 
     
    453453} 
    454454 
    455455/** 
    456  * Is the query for a month archive? 
     456 * Is the query for an existing month archive? 
    457457 * 
    458458 * @see WP_Query::is_month() 
    459459 * @since 1.5.0 
     
    473473} 
    474474 
    475475/** 
    476  * Is the query for a single page? 
     476 * Is the query for an existing single page? 
    477477 * 
    478478 * If the $page parameter is specified, this function will additionally 
    479479 * check if the query is for one of the pages specified. 
     
    580580} 
    581581 
    582582/** 
    583  * Is the query for a single post? 
     583 * Is the query for an existing single post? 
    584584 * 
    585585 * Works for any post type, except attachments and pages 
    586586 * 
     
    609609} 
    610610 
    611611/** 
    612  * Is the query for a single post of any post type (post, attachment, page, ... )? 
     612 * Is the query for an existing single post of any post type (post, attachment, page, ... )? 
    613613 * 
    614614 * If the $post_types parameter is specified, this function will additionally 
    615615 * check if the query is for one of the Posts Types specified. 
     
    676676} 
    677677 
    678678/** 
    679  * Is the query for a specific year? 
     679 * Is the query for an existing year archive? 
    680680 * 
    681681 * @see WP_Query::is_year() 
    682682 * @since 1.5.0 
     
    29422942        } 
    29432943 
    29442944        /** 
    2945          * Is the query for an archive page? 
     2945         * Is the query for an existing archive page? 
    29462946         * 
    29472947         * Month, Year, Category, Author, Post Type archive... 
    29482948         * 
     
    29552955        } 
    29562956 
    29572957        /** 
    2958          * Is the query for a post type archive page? 
     2958         * Is the query for an existing post type archive page? 
    29592959         * 
    29602960         * @since 3.1.0 
    29612961         * 
     
    29752975        } 
    29762976 
    29772977        /** 
    2978          * Is the query for an attachment page? 
     2978         * Is the query for an existing attachment page? 
    29792979         * 
    29802980         * @since 3.1.0 
    29812981         * 
     
    29862986        } 
    29872987 
    29882988        /** 
    2989          * Is the query for an author archive page? 
     2989         * Is the query for an existing author archive page? 
    29902990         * 
    29912991         * If the $author parameter is specified, this function will additionally 
    29922992         * check if the query is for one of the authors specified. 
     
    30183018        } 
    30193019 
    30203020        /** 
    3021          * Is the query for a category archive page? 
     3021         * Is the query for an existing category archive page? 
    30223022         * 
    30233023         * If the $category parameter is specified, this function will additionally 
    30243024         * check if the query is for one of the categories specified. 
     
    30503050        } 
    30513051 
    30523052        /** 
    3053          * Is the query for a tag archive page? 
     3053         * Is the query for an existing tag archive page? 
    30543054         * 
    30553055         * If the $tag parameter is specified, this function will additionally 
    30563056         * check if the query is for one of the tags specified. 
     
    30783078        } 
    30793079 
    30803080        /** 
    3081          * Is the query for a taxonomy archive page? 
     3081         * Is the query for an existing taxonomy archive page? 
    30823082         * 
    30833083         * If the $taxonomy parameter is specified, this function will additionally 
    30843084         * check if the query is for that specific $taxonomy. 
     
    31283128        } 
    31293129 
    31303130        /** 
    3131          * Is the query for a date archive? 
     3131         * Is the query for an existing date archive? 
    31323132         * 
    31333133         * @since 3.1.0 
    31343134         * 
     
    31403140 
    31413141 
    31423142        /** 
    3143          * Is the query for a day archive? 
     3143         * Is the query for an existing day archive? 
    31443144         * 
    31453145         * @since 3.1.0 
    31463146         * 
     
    32273227        } 
    32283228 
    32293229        /** 
    3230          * Is the query for a month archive? 
     3230         * Is the query for an existing month archive? 
    32313231         * 
    32323232         * @since 3.1.0 
    32333233         * 
     
    32383238        } 
    32393239 
    32403240        /** 
    3241          * Is the query for a single page? 
     3241         * Is the query for an existing single page? 
    32423242         * 
    32433243         * If the $page parameter is specified, this function will additionally 
    32443244         * check if the query is for one of the pages specified. 
     
    33173317        } 
    33183318 
    33193319        /** 
    3320          * Is the query for a single post? 
     3320         * Is the query for an existing single post? 
    33213321         * 
    33223322         * Works for any post type, except attachments and pages 
    33233323         * 
     
    33543354        } 
    33553355 
    33563356        /** 
    3357          * Is the query for a single post of any post type (post, attachment, page, ... )? 
     3357         * Is the query for an existing single post of any post type (post, attachment, page, ... )? 
    33583358         * 
    33593359         * If the $post_types parameter is specified, this function will additionally 
    33603360         * check if the query is for one of the Posts Types specified. 
     
    33993399        } 
    34003400 
    34013401        /** 
    3402          * Is the query for a specific year? 
     3402         * Is the query for an existing year archive? 
    34033403         * 
    34043404         * @since 3.1.0 
    34053405         *