• Resolved Lee Rickler

    (@bigbadboy)


    WARNING: .htaccess Hidden Files or Folders found.

    Is this a warning? htaccess files are required.

    RECOMMENDED: No reference to add_custom_image_header was found in the theme.
    RECOMMENDED: No reference to add_custom_background() was found in the theme.

    But these are not required for my theme.

    Although these are only INFO calls, they are still important:
    INFO: At least one hard coded date was found in the file right.php. Consider get_option( ‘date_format’ )
    INFO: At least one hard coded date was found in the file archive.php. Consider get_option( ‘date_format’ )

    I checked both of these files and cannot see any date, especially hard coded

    https://www.ads-software.com/extend/plugins/theme-check/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Is this a warning? htaccess files are required.

    .htaccess files are not required nor allowed in a theme. Same with any other hidden files or folders. The theme uploader will block your theme if it contains these.

    But these are not required for my theme.

    That’s why it says “recommended” instead of “required”.

    I checked both of these files and cannot see any date, especially hard coded

    It’s in there somewhere. Look for “the_date” or “the_time” or “date_i18n”. If it has a hardcoded date format in it, then that’s what it’s telling you about.

    Thread Starter Lee Rickler

    (@bigbadboy)

    No problem on the other 2 points – on the htaccess issue I use this for security reasons – not saying it’s the right/ wrong way of doing something, but it’s the method I use.

    Thanks anyway.

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Theme Check is specifically checking for issues in themes that are designed to meet the Theme Review Guidelines, which is why the .htaccess file matters. If you were uploading the theme to the directory, then the .htaccess wouldn’t be allowed there, since it’s likely going to be more specific to a particular site and not generic for every site.

    So as far as that particular guideline goes, you can safely ignore it if you’re just checking a custom theme for your own site. Theme Check is primarily aimed at theme developers, to help them build better themes.

    Thread Starter Lee Rickler

    (@bigbadboy)

    Ah! yes, it was the_time.

    Thanks loads.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Theme-Check] Issues, missing tags’ is closed to new replies.