Make WordPress Core

Ticket #26742: 26742.2.patch

File 26742.2.patch, 4.3 KB (added by SergeyBiryukov, 12 years ago)
  • src/wp-includes/template.php

     
    4444/**
    4545 * Retrieve path of index template in current or parent template.
    4646 *
     47 * Calls 'index_template' filter on file path of template.
     48 *
    4749 * @since 3.0.0
    4850 *
    4951 * @return string
     
    5557/**
    5658 * Retrieve path of 404 template in current or parent template.
    5759 *
     60 * Calls '404_template' filter on file path of template.
     61 *
    5862 * @since 1.5.0
    5963 *
    6064 * @return string
     
    6670/**
    6771 * Retrieve path of archive template in current or parent template.
    6872 *
     73 * Calls 'archive_template' filter on file path of template.
     74 *
    6975 * @since 1.5.0
    7076 *
    7177 * @return string
     
    8793/**
    8894 * Retrieve path of post type archive template in current or parent template.
    8995 *
     96 * Calls 'archive_template' filter on file path of template.
     97 *
    9098 * @since 3.7.0
    9199 *
    92100 * @return string
     
    106114/**
    107115 * Retrieve path of author template in current or parent template.
    108116 *
     117 * Calls 'author_template' filter on file path of template.
     118 *
    109119 * @since 1.5.0
    110120 *
    111121 * @return string
     
    131141 * trying category ID, for example 'category-1.php', and will finally fall back to category.php
    132142 * template, if those files don't exist.
    133143 *
     144 * Calls 'category_template' filter on file path of category template.
     145 *
    134146 * @since 1.5.0
    135  * @uses apply_filters() Calls 'category_template' on file path of category template.
    136147 *
    137148 * @return string
    138149 */
     
    157168 * trying tag ID, for example 'tag-1.php', and will finally fall back to tag.php
    158169 * template, if those files don't exist.
    159170 *
     171 * Calls 'tag_template' filter on file path of tag template.
     172 *
    160173 * @since 2.3.0
    161  * @uses apply_filters() Calls 'tag_template' on file path of tag template.
    162174 *
    163175 * @return string
    164176 */
     
    188200 * template is used. If none of the files exist, then it will fall back on to
    189201 * index.php.
    190202 *
     203 * Calls 'taxonomy_template' filter on found path.
     204 *
    191205 * @since 2.5.0
    192  * @uses apply_filters() Calls 'taxonomy_template' filter on found path.
    193206 *
    194207 * @return string
    195208 */
     
    211224/**
    212225 * Retrieve path of date template in current or parent template.
    213226 *
     227 * Calls 'date_template' filter on file path of template.
     228 *
    214229 * @since 1.5.0
    215230 *
    216231 * @return string
     
    226241 *
    227242 * Attempts to locate 'home.php' first before falling back to 'index.php'.
    228243 *
     244 * Calls 'home_template' filter on file path of home template.
     245 *
    229246 * @since 1.5.0
    230  * @uses apply_filters() Calls 'home_template' on file path of home template.
    231247 *
    232248 * @return string
    233249 */
     
    242258 *
    243259 * Looks for 'front-page.php'.
    244260 *
     261 * Calls 'front_page_template' filter on file path of template.
     262 *
    245263 * @since 3.0.0
    246  * @uses apply_filters() Calls 'front_page_template' on file path of template.
    247264 *
    248265 * @return string
    249266 */
     
    260277 * Then will search for 'page-{slug}.php', followed by 'page-{id}.php',
    261278 * and finally 'page.php'.
    262279 *
     280 * Calls 'page_template' filter on file path of template.
     281 *
    263282 * @since 1.5.0
    264283 *
    265284 * @return string
     
    291310/**
    292311 * Retrieve path of paged template in current or parent template.
    293312 *
     313 * Calls 'paged_template' filter on file path of template.
     314 *
    294315 * @since 1.5.0
    295316 *
    296317 * @return string
     
    302323/**
    303324 * Retrieve path of search template in current or parent template.
    304325 *
     326 * Calls 'search_template' filter on file path of template.
     327 *
    305328 * @since 1.5.0
    306329 *
    307330 * @return string
     
    313336/**
    314337 * Retrieve path of single template in current or parent template.
    315338 *
     339 * Calls 'single_template' filter on file path of template.
     340 *
    316341 * @since 1.5.0
    317342 *
    318343 * @return string
     
    340365 * Some examples for the 'text/plain' mime type are 'text.php', 'plain.php', and
    341366 * finally 'text_plain.php'.
    342367 *
     368 * Calls 'attachment_template' filter on file path of template.
     369 *
    343370 * @since 2.0.0
    344371 *
    345372 * @return string
     
    371398 * Checks for comment popup template in current template, if it exists or in the
    372399 * parent template.
    373400 *
     401 * Calls 'comments_popup_template' filter on path.
     402 *
    374403 * @since 1.5.0
    375  * @uses apply_filters() Calls 'comments_popup_template' filter on path.
    376404 *
    377405 * @return string
    378406 */