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

git-svn-id: https://develop.svn.wordpress.org/trunk@1726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2004-09-30 17:56:16 +00:00
parent af25d70842
commit ebbf002430
4 changed files with 118 additions and 97 deletions

View File

@@ -1704,4 +1704,16 @@ function the_post() {
start_wp(true);
}
function get_template_directory() {
$template = get_settings('template');
if (empty($template) || $template == 'default') {
$template = ABSPATH . "wp-content";
} else {
$template = ABSPATH . "wp-content/themes/$template";
}
return $template;
}
?>