GaryJones / Gamajo-Template-Loader

A class to copy into your WordPress plugin, to allow loading template parts with fallback through the child theme > parent theme > plugin.
GNU General Public License v2.0
292 stars 61 forks source link

Order of templates #8

Closed GaryJones closed 10 years ago

GaryJones commented 10 years ago

From #7:

[Change break; to break 2; in locate_template().] I ran into an instance where it was grabbing the generic template over the specific template due to possible names.

Need to document what order this class runs through templates, and check it matches to WP, and then, for instance, EDD, to ensure consistency.

GaryJones commented 10 years ago

@rmccue's patch for core at https://core.trac.wordpress.org/attachment/ticket/27322/27322.diff agrees that it should be break 2, so lets go with that.