diff --git a/classes/ComicPressMediaHandling.inc b/classes/ComicPressMediaHandling.inc index e5fbb41..9f24ab1 100644 --- a/classes/ComicPressMediaHandling.inc +++ b/classes/ComicPressMediaHandling.inc @@ -83,7 +83,7 @@ class ComicPressMediaHandling { // @codeCoverageIgnoreStart function _abspath() { - return trailingslashit($this->_resolve_regex_path(realpath(ABSPATH))); + return trailingslashit($this->_resolve_regex_path(ABSPATH)); } // @codeCoverageIgnoreEnd diff --git a/functions/displaypost.php b/functions/displaypost.php index 99eafc6..3afca8b 100644 --- a/functions/displaypost.php +++ b/functions/displaypost.php @@ -105,6 +105,7 @@ function comicpress_display_comic_navigation() { if (!$comicpress_options['disable_default_comic_nav']) { $first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink(); + $wp_query->is_single = true; if (!is_search() && !is_archive() && !is_page() && in_comic_category()) { ?>