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

Few Changes #7

Closed wpsmith closed 10 years ago

wpsmith commented 10 years ago
  1. Add trailingslashit to plugin_directory
  2. Allow templates directory to be set by child class
  3. Fixed double foreach break within locate_template. I ran into an instance where it was grabbing the generic template over the specific template due to possible names.
GaryJones commented 10 years ago

That last change is significant. It may well be the case where a generic template is being picked over a specific one. Can you revert that change here (just leaving 1 and 2), and open a new PR with 3) (and visibility keyword change) please?

GaryJones commented 10 years ago

1 and 2 committed in 818ab55041d56c3af0025fab1b9b4ea16bd6e583