WordPress.org

Ready to get started?Download WordPress

Forums

Theme-Check
[resolved] Suggestion broke the site. (9 posts)

  1. pszeinert
    Member
    Posted 3 years ago #

    After running Theme Check, I got a few errors and began fixing them one by one. After taking this suggestion:

    Recommended: bloginfo('template_directory') was found in the file header.php.
    Use get_template_directory_uri() instead.

    ...I found the CSS was not loading properly.

    Need to add an "echo" command to make this work correctly.

    Recommended: bloginfo('template_directory') was found in the file header.php.
    Use echo get_template_directory_uri() instead.

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

  2. Simon Prosser
    Theme Review Admin
    Plugin Author

    Posted 3 years ago #

    Plugin updated, 20101110.4_r1 fixes this bug.

  3. pszeinert
    Member
    Posted 3 years ago #

    Since I already fixed the issue with my code, I will assume this solves it. Thanks for the prompt attention, and thanks for the plugin. It's really useful for cleaning up themes I have purchased outside of the WordPress.org community.

  4. Simon Prosser
    Theme Review Admin
    Plugin Author

    Posted 3 years ago #

    Glad you find it useful! Why not try a dev version? http://wordpress.org/extend/plugins/theme-check/download/

  5. pszeinert
    Member
    Posted 3 years ago #

    Installed the dev version and ran the theme check again. Some of the earlier "recommendations" and "info" disappeared. Did you make it less stringent?

    Specifically, I no longer see a warning about an absolute URL I placed in there and using include instead of get_template_part().

    On the plus side, it does say this:
    Theme passed all the tests!

  6. Simon Prosser
    Theme Review Admin
    Plugin Author

    Posted 3 years ago #

    .7 is the latest and includes the 3.1 specific stuff, trunk is in flux at the moment and the tests probably are not running at all! ;)

  7. pszeinert
    Member
    Posted 3 years ago #

    Great! Hopefully this all shakes out by late-December or early-January.

  8. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    I'm currently going through and syncing the checks with the uploader checks to make them identical. So expect a release for this plugin as soon as I work all that out. There's a lot of checks in here to sort through. :)

  9. Simon Prosser
    Theme Review Admin
    Plugin Author

    Posted 3 years ago #

    You can follow the development here: https://github.com/Pross/theme-check

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic