Issue on template copy
-
This plugin has an issue when check if template files was copied to child theme.
See above (index.php line 327):
$kbe_archive_file = KBE_THEME_DIR.KBE_FILE_DIR.'/archive-kbe_knowledgebase.php'; $kbe_kbe_file = KBE_THEME_DIR.KBE_FILE_DIR.'/kbe_knowledgebase.php'; $kbe_style_file = KBE_THEME_DIR.KBE_FILE_DIR.'/kbe_style.css'; $kbe_single_file = KBE_THEME_DIR.KBE_FILE_DIR.'/single-kbe_knowledgebase.php'; $kbe_taxonomy_file = KBE_THEME_DIR.KBE_FILE_DIR.'/taxonomy-kbe_taxonomy.php'; $kbe_tags_file = KBE_THEME_DIR.KBE_FILE_DIR.'/taxonomy-kbe_tags.php'; $kbe_comment_file = KBE_THEME_DIR.KBE_FILE_DIR.'/kbe_comments.php'; $kbe_search_file = KBE_THEME_DIR.KBE_FILE_DIR.'/kbe_search.php'; if((!file_exists($kbe_archive_file)) or (!file_exists($kbe_kbe_file))or (!file_exists($kbe_style_file)) or (!file_exists($kbe_single_file)) or (!file_exists($kbe_taxonomy_file)) or (!file_exists($kbe_tags_file)) or (!file_exists($kbe_comment_file)) or (!file_exists($kbe_search_file))) {When checking for this file
KBE_THEME_DIR.KBE_FILE_DIR.'/archive-kbe_knowledgebase.php, the plugin are checking forget_template_directory() . get_template_directory() . "/wp_knowledgebase/archive-kbe_knowledgebase.php"where the file never will exists. Then, on every page load all template files are overwriten.To fix it, just change from
KBE_THEME_DIR.KBE_FILE_DIRtoKBE_FILE_DIRbetween lines 327 and 334.Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Issue on template copy’ is closed to new replies.