WordPress.org

Ready to get started?Download WordPress

Forums

Theme-Check
[resolved] Issues, missing tags (5 posts)

  1. Lee Rickler
    Member
    Posted 2 years ago #

    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

    http://wordpress.org/extend/plugins/theme-check/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    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.

  3. Lee Rickler
    Member
    Posted 2 years ago #

    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.

  4. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    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.

  5. Lee Rickler
    Member
    Posted 2 years ago #

    Ah! yes, it was the_time.

    Thanks loads.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic