[wp-trac] [WordPress Trac] #22314: Add singular.php to template hierarchy

WordPress Trac noreply at wordpress.org
Tue Oct 30 15:04:24 UTC 2012


#22314: Add singular.php to template hierarchy
-------------------------------------------------+-------------------------
 Reporter:  chipbennett                          |       Type:  enhancement
   Status:  new                                  |   Priority:  normal
Milestone:  Awaiting Review                      |  Component:  General
  Version:  3.4.2                                |   Severity:  normal
 Keywords:  has-patch needs-codex needs-testing  |
-------------------------------------------------+-------------------------
 Currently, the template hierarchy includes a fallback template
 (archive.php) for all archive-index type pages (date, tag, category,
 taxonomy, author, blog posts index, custom post type index), but does not
 include an analogous fallback template for single-post type pages (blog
 post, page, attachment, custom post type). This patch adds `singular.php`
 to act as such fallback.

 This change also ensures that all template context conditionals have
 associated template files. AFAIK, `is_singular()` is currently the only
 template context conditional that does not have such a corresponding
 template file.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22314>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list