WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/18/2015 07:00:09 PM (4 years ago)
Author:
jorbin
Message:

Add singular.php to template hierarchy

Singular is the only template context conditional that lacks a corresponding template. This allows some themes to simplify.

Fixes #22314.
Props chipbennett.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/template-loader.php

    r25991 r32846  
    5454    elseif ( is_single()         && $template = get_single_template()         ) :
    5555    elseif ( is_page()           && $template = get_page_template()           ) :
     56    elseif ( is_singular()       && $template = get_singular_template()       ) :
    5657    elseif ( is_category()       && $template = get_category_template()       ) :
    5758    elseif ( is_tag()            && $template = get_tag_template()            ) :
Note: See TracChangeset for help on using the changeset viewer.