mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user