Theme-Check

Viewing 2 posts - 1 through 2 (of 2 total)
  • #20576
    LanaStudio
    Participant

    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,
    Lana

    #20872
    Daniel Tara
    Keymaster

    These 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 using get_template_part or locate_template.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.