Replaces all uses of TEMPLATEPATH and STYLESHEETPATH in core with get_template_directory() and get_stylesheet_directory().

Add `@deprecated` annotations to `TEMPLATEPATH` and `STYLESHEETPATH` definitions.

Props obenland, aaroncampbell. 
Fixes #18298.


git-svn-id: https://develop.svn.wordpress.org/trunk@28563 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-05-23 20:11:08 +00:00
parent e2a124a911
commit 70f735669a
5 changed files with 20 additions and 14 deletions
+4
View File
@@ -296,12 +296,16 @@ function wp_templating_constants() {
/**
* Filesystem path to the current active template directory
* @since 1.5.0
* @deprecated 4.0
* @deprecated Use get_template_directory()
*/
define('TEMPLATEPATH', get_template_directory());
/**
* Filesystem path to the current active template stylesheet directory
* @since 2.1.0
* @deprecated 4.0
* @deprecated Use get_stylesheet_directory()
*/
define('STYLESHEETPATH', get_stylesheet_directory());