Closed ghost closed 11 years ago
Good point, I will be interested in hearing any feedback on your info and why it has not been adopted before. I have always been told that Codex is the place to refer too.
On that note Codex states: include( get_template_directory() . '/file.php' ) must not be used to call Theme template part files (as you have pointed out above and seems to output an error if you do so).
http://codex.wordpress.org/Theme_Review#Template_Tags_and_Hooks
Other info of interest: http://lists.wordpress.org/pipermail/theme-reviewers/2011-August/006761.html
It would seem from the above that only if you are wanting to use some functionality with the constants otherwise it still works by using TEMPLATEPATH
TEMPLATEPATH
andSTYLESHEETPATH
constants appear to be deprecated. Issue # 10 addressed such a site information instance, but other template part instances such as including meta.php and nav.php should be reviewed. Here is the relevant passages of the Wordpress Codex Theme Review:Including Files
Site Information