get_stylesheet_directory changed to get_template_directory in the get_comic_path function

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-01 14:37:31 -08:00
parent aa9eaa0292
commit 3be56dac2c
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ function get_comic_path($folder = 'comic', $override_post = null, $filter = 'def
$filter_with_date = str_replace('{date}', $post_date, $filter_to_use); $filter_with_date = str_replace('{date}', $post_date, $filter_to_use);
$cwd = get_stylesheet_directory(); $cwd = get_template_directory();
if ($cwd !== false) { if ($cwd !== false) {
// Strip the wp-admin part and just get to the root. // Strip the wp-admin part and just get to the root.
$root_path = preg_replace('#[\\/]wp-(admin|content).*#', '', $cwd); $root_path = preg_replace('#[\\/]wp-(admin|content).*#', '', $cwd);