-
LanaStudioParticipant
Hi,
I ran a Theme-Check on Enlightenment theme and this is what it showed:
INFO: core/init.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 121: require_once( enlightenment_functions_directory() . ‘/general.php’ );
Line 122: require_once( enlightenment_functions_directory() . ‘/navigation.php’ );
Line 123: require_once( enlightenment_functions_directory() . ‘/content.php’ );
Line 124: require_once( enlightenment_functions_directory() . ‘/comments.php’ );
Line 137: require_once( enlightenment_functions_directory() . ‘/jetpack-portfolio.php
Line 147: require_once( enlightenment_functions_directory() . ‘/template-editor.php’
Line 156: require_once( enlightenment_admin_directory() . ‘/init.php’ );
Line 160: require_once( enlightenment_functions_directory() . ‘/default-hooks.php’ );
INFO: core/admin/menu-icons.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 6: require_once( enlightenment_admin_directory() . ‘/menu-icons-walker.php’ );
INFO: core/admin/init.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 202: require_once( enlightenment_admin_directory() . ‘/settings-api.php’ );
Line 210: require_once( enlightenment_admin_directory() . ‘/template-editor.php’ );
Line 216: require_once( enlightenment_admin_directory() . ‘/validate.php’ );Any suggestions?
Thank you,
LanaDaniel TaraKeymasterThese are not errors but information that the theme loads files using
require_once
. Since those files contain functions and are not template files there is no reason to load them usingget_template_part
orlocate_template
.
You must be logged in to reply to this topic.