Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Theme Check reports some errors, warnings and recommendations #19

Open
8 of 10 tasks
Zodiac1978 opened this issue Dec 17, 2020 · 0 comments · Fixed by #29, #31, #32 or #38
Open
8 of 10 tasks

Theme Check reports some errors, warnings and recommendations #19

Zodiac1978 opened this issue Dec 17, 2020 · 0 comments · Fixed by #29, #31, #32 or #38

Comments

@Zodiac1978
Copy link
Contributor

Zodiac1978 commented Dec 17, 2020

With the current Theme check there are some optimizations recommended:

REQUIRED

  • Tested up to: is missing from your style.css header. Also, this should be numbers only, so 5.0 and not WP 5.0
  • Requires PHP: is missing from your style.css header.
  • The tag responsive-layout has been deprecated, please remove it from your style.css header.
  • The tag light has been deprecated, please remove it from your style.css header.
  • Could not find wp_body_open action or function call at the very top of the body just after the opening body tag. See: wp_body_open
  • HEADER_TEXTCOLOR was found in the file inc/custom-header.php. Use add_theme_support( 'custom-header' ) instead.Line 49: // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value.Line 50: if ( HEADER_TEXTCOLOR === $header_text_color ) {

WARNINGS

  • Found echo get_theme_mod in header.php. Theme options must be escaped (Opens in a new window).. Line 24: <div id='page' class='hfeed site '>
  • Found ><?php echo esc_attr( in widgets/recent-comments.php. Only use esc_attr() inside HTML attributes. Use esc_html() between HTML tags. A manual review is needed.Line 64: <p class='excerpt'><?php echo esc_attr(comment_excerpt($comment->comment_ID)); ?></p>

RECOMMENDATION

  • No reference to add_theme_support( "custom-background", $args ) was found in the theme. If the theme uses background images or solid colors for the background, then it is recommended that the theme implement this functionality.
  • Tags: is either empty or missing in style.css header. (icons)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.