Closed mindfaucet closed 15 years ago
the inc means it's auto included with special code for the classes in the functions.php so that the classes are read and registered all at once, of course I could be totally wrong, John confuses the hell out of me with elaborate code sometimes..
Yes, they should be .inc for security purposes. No, .inc does not mean "auto-included". Lines 238-256 of functions.php does the inclusion. Change the value of the "functions" key to "inc" to get that to work. Yes, the "elaborate code" is necessary to cut down on copy/pasted solutions.
closing
In functions.php should the extensions on the filenames here be .inc rather than .php to coincide with existing ComicPress file naming?
function comicpress_check_child_file($filename = '') { if (empty($filename)) return false; if (get_stylesheet_directory() != get_template_directory()) { if (file_exists(get_stylesheet_directory() .'/'. $filename . '.php')) { return include(get_stylesheet_directory() .'/'. $filename . '.php'); } } return false; }