Make WordPress Core

Ticket #40467: 40467.diff

File 40467.diff, 787 bytes (added by f.staude, 8 years ago)

patch

  • src/wp-includes/default-constants.php

     
    340340         * Filesystem path to the current active template directory
    341341         * @since 1.5.0
    342342         */
    343         define('TEMPLATEPATH', get_template_directory());
     343        if ( !defined('TEMPLATEPATH') )
     344                define('TEMPLATEPATH', get_template_directory());
    344345
    345346        /**
    346347         * Filesystem path to the current active template stylesheet directory
    347348         * @since 2.1.0
    348349         */
    349         define('STYLESHEETPATH', get_stylesheet_directory());
     350        if ( !defined('STYLESHEETPATH') )
     351                define('STYLESHEETPATH', get_stylesheet_directory());
    350352
    351353        /**
    352354         * Slug of the default theme for this install.