Make WordPress Core


Ignore:
Timestamp:
09/30/2004 05:56:16 PM (22 years ago)
Author:
rboren
Message:

Introduce get_template_directory() and bloginfo('stylesheet_directory'). Make comments_popup_script() theme aware.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1724 r1726  
    17051705}
    17061706
     1707function get_template_directory() {
     1708        $template = get_settings('template');
     1709
     1710        if (empty($template) || $template == 'default') {
     1711                $template = ABSPATH . "wp-content";
     1712        } else {
     1713                $template = ABSPATH . "wp-content/themes/$template";
     1714        }
     1715
     1716        return $template;
     1717}
     1718
    17071719?>
Note: See TracChangeset for help on using the changeset viewer.