Ticket #26742: 26742.2.patch
| File 26742.2.patch, 4.3 KB (added by , 12 years ago) |
|---|
-
src/wp-includes/template.php
44 44 /** 45 45 * Retrieve path of index template in current or parent template. 46 46 * 47 * Calls 'index_template' filter on file path of template. 48 * 47 49 * @since 3.0.0 48 50 * 49 51 * @return string … … 55 57 /** 56 58 * Retrieve path of 404 template in current or parent template. 57 59 * 60 * Calls '404_template' filter on file path of template. 61 * 58 62 * @since 1.5.0 59 63 * 60 64 * @return string … … 66 70 /** 67 71 * Retrieve path of archive template in current or parent template. 68 72 * 73 * Calls 'archive_template' filter on file path of template. 74 * 69 75 * @since 1.5.0 70 76 * 71 77 * @return string … … 87 93 /** 88 94 * Retrieve path of post type archive template in current or parent template. 89 95 * 96 * Calls 'archive_template' filter on file path of template. 97 * 90 98 * @since 3.7.0 91 99 * 92 100 * @return string … … 106 114 /** 107 115 * Retrieve path of author template in current or parent template. 108 116 * 117 * Calls 'author_template' filter on file path of template. 118 * 109 119 * @since 1.5.0 110 120 * 111 121 * @return string … … 131 141 * trying category ID, for example 'category-1.php', and will finally fall back to category.php 132 142 * template, if those files don't exist. 133 143 * 144 * Calls 'category_template' filter on file path of category template. 145 * 134 146 * @since 1.5.0 135 * @uses apply_filters() Calls 'category_template' on file path of category template.136 147 * 137 148 * @return string 138 149 */ … … 157 168 * trying tag ID, for example 'tag-1.php', and will finally fall back to tag.php 158 169 * template, if those files don't exist. 159 170 * 171 * Calls 'tag_template' filter on file path of tag template. 172 * 160 173 * @since 2.3.0 161 * @uses apply_filters() Calls 'tag_template' on file path of tag template.162 174 * 163 175 * @return string 164 176 */ … … 188 200 * template is used. If none of the files exist, then it will fall back on to 189 201 * index.php. 190 202 * 203 * Calls 'taxonomy_template' filter on found path. 204 * 191 205 * @since 2.5.0 192 * @uses apply_filters() Calls 'taxonomy_template' filter on found path.193 206 * 194 207 * @return string 195 208 */ … … 211 224 /** 212 225 * Retrieve path of date template in current or parent template. 213 226 * 227 * Calls 'date_template' filter on file path of template. 228 * 214 229 * @since 1.5.0 215 230 * 216 231 * @return string … … 226 241 * 227 242 * Attempts to locate 'home.php' first before falling back to 'index.php'. 228 243 * 244 * Calls 'home_template' filter on file path of home template. 245 * 229 246 * @since 1.5.0 230 * @uses apply_filters() Calls 'home_template' on file path of home template.231 247 * 232 248 * @return string 233 249 */ … … 242 258 * 243 259 * Looks for 'front-page.php'. 244 260 * 261 * Calls 'front_page_template' filter on file path of template. 262 * 245 263 * @since 3.0.0 246 * @uses apply_filters() Calls 'front_page_template' on file path of template.247 264 * 248 265 * @return string 249 266 */ … … 260 277 * Then will search for 'page-{slug}.php', followed by 'page-{id}.php', 261 278 * and finally 'page.php'. 262 279 * 280 * Calls 'page_template' filter on file path of template. 281 * 263 282 * @since 1.5.0 264 283 * 265 284 * @return string … … 291 310 /** 292 311 * Retrieve path of paged template in current or parent template. 293 312 * 313 * Calls 'paged_template' filter on file path of template. 314 * 294 315 * @since 1.5.0 295 316 * 296 317 * @return string … … 302 323 /** 303 324 * Retrieve path of search template in current or parent template. 304 325 * 326 * Calls 'search_template' filter on file path of template. 327 * 305 328 * @since 1.5.0 306 329 * 307 330 * @return string … … 313 336 /** 314 337 * Retrieve path of single template in current or parent template. 315 338 * 339 * Calls 'single_template' filter on file path of template. 340 * 316 341 * @since 1.5.0 317 342 * 318 343 * @return string … … 340 365 * Some examples for the 'text/plain' mime type are 'text.php', 'plain.php', and 341 366 * finally 'text_plain.php'. 342 367 * 368 * Calls 'attachment_template' filter on file path of template. 369 * 343 370 * @since 2.0.0 344 371 * 345 372 * @return string … … 371 398 * Checks for comment popup template in current template, if it exists or in the 372 399 * parent template. 373 400 * 401 * Calls 'comments_popup_template' filter on path. 402 * 374 403 * @since 1.5.0 375 * @uses apply_filters() Calls 'comments_popup_template' filter on path.376 404 * 377 405 * @return string 378 406 */