Make WordPress Core


Ignore:
Timestamp:
05/23/2014 08:11:08 PM (12 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-constants.php

    r26868 r28563  
    297297         * Filesystem path to the current active template directory
    298298         * @since 1.5.0
     299         * @deprecated 4.0
     300         * @deprecated Use get_template_directory()
    299301         */
    300302        define('TEMPLATEPATH', get_template_directory());
    … …  
    303305         * Filesystem path to the current active template stylesheet directory
    304306         * @since 2.1.0
     307         * @deprecated 4.0
     308         * @deprecated Use get_stylesheet_directory()
    305309         */
    306310        define('STYLESHEETPATH', get_stylesheet_directory());
Note: See TracChangeset for help on using the changeset viewer.