﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
12877	Modular themes: Apply template hierarchy to folders within a theme	koopersmith		"Applying template heirarchy to folders within a theme will allow themes to be broken into modules, allowing theme developers to substantially reduce repeated code. This is an automated, complete version of the use of get_template_part() in Twenty Ten.

I've written posts on the [http://wp.me/pS0xt-1f justification for modular themes] and [http://wp.me/pS0xt-30 their potential to transform theme organization].

Based on [http://wp.me/pS0xt-3O my tests], these functions should cause no noticeable difference in performance.

The patch has the added benefit of creating an accurate global $wp_template_hierarchy object (and a getter method), so any plugin/theme can access the template hierarchy for $wp_query.

The patch introduces several new functions: get_template_module($folder), get_template_hierarchy(), update_template_hierarchy(), and 2 private functions.

Finally, the patch also add a 'locate_template' filter on $template_names at the beginning of locate_template(), and turns the large conditional in template-loader.php into a function: template_loader()."	feature request	new	normal	Future Release	Themes		normal		has-patch	wordpress@… mikeschinkel@… aaron@… sbressler@… 24-7@… dkikizas@… beau@… willnorris rspindel ramoonus@… azizur svallory GreenDude gruvii alex.ciobica@… johnbillion@… navjotjsingh@… Ken@… admin@… emzo retlehs me@…
