Changeset 60994
- Timestamp:
- 10/20/2025 10:11:23 PM (5 weeks ago)
- File:
-
- 1 edited
- trunk/src/wp-includes/template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r60973 r60994 324 324 * 325 325 * 1. taxonomy-{taxonomy_slug}-{term_slug}.php 326 * 2. taxonomy-{taxonomy_slug}.php 327 * 3. taxonomy.php 326 * 2. taxonomy-{taxonomy_slug}-{term_id}.php 327 * 3. taxonomy-{taxonomy_slug}.php 328 * 4. taxonomy.php 328 329 * 329 330 * An example of this is: 330 331 * 331 332 * 1. taxonomy-location-texas.php 332 * 2. taxonomy-location.php 333 * 3. taxonomy.php 333 * 2. taxonomy-location-67.php 334 * 3. taxonomy-location.php 335 * 4. taxonomy.php 334 336 * 335 337 * The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'} … … 339 341 * @since 4.7.0 The decoded form of `taxonomy-{taxonomy_slug}-{term_slug}.php` was added to the top of the 340 342 * template hierarchy when the term slug contains multibyte characters. 343 * @since 6.9.0 Added `taxonomy-{taxonomy_slug}-{term_id}.php` to the hierarchy. 341 344 * 342 345 * @see get_query_template() … … 358 361 359 362 $templates[] = "taxonomy-$taxonomy-{$term->slug}.php"; 363 $templates[] = "taxonomy-$taxonomy-{$term->term_id}.php"; 360 364 $templates[] = "taxonomy-$taxonomy.php"; 361 365 }
Note: See TracChangeset for help on using the changeset viewer.