Use correct directory path#469
Use correct directory path#469emiluzelac wants to merge 1 commit intoTGMPA:developfrom emiluzelac:patch-1
Conversation
`get_template_directory()` should be used in both cases. - get_template_directory(): Returns the absolute template directory path. - get_stylesheet_directory(): Returns the absolute stylesheet directory path.
|
Thanks Emil. There are several things wrong here:
We already include examples from the WPORG repo (BuddyPress), along with bundled plugin, external zip, GitHub repo and a special case. |
|
My bad, I wasn't thinking about the plugins at all :( As far as |
|
How about you do a PR which has commented-out versions suitable for plugin and theme, replacing what's currently there? e.g. // Uncomment ONE of the following typical paths and amend as necessary.
// Theme:
// require get_stylesheet_path() . '/path/to/class-tgm-plugin-activation.php';
// Plugin:
// require {whatever the plugins_dir_path() thing is that I'm too lazy to look up right now :-) }; |
|
I'll try, time isn't on my side lately :) On Fri, Aug 28, 2015 at 2:52 PM, Gary Jones notifications@github.com
|
get_template_directory()should be used in both cases.Maybe you could recommend https://wordpress.org/plugins/example/ instead of one that bundles.