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:
parent
aa9eaa0292
commit
3be56dac2c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue