Make WordPress Core


Ignore:
Timestamp:
05/23/2014 08:11:08 PM (11 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/theme.php

    r28337 r28563  
    129129 **/
    130130function is_child_theme() {
    131     return ( TEMPLATEPATH !== STYLESHEETPATH );
     131    return get_template_directory() !== get_stylesheet_directory();
    132132}
    133133
Note: See TracChangeset for help on using the changeset viewer.