Child themes fail scan when added to repo.

These errors come up. I know it’s because it just scans the files and everything is missing because it’s a child theme. Just bringing it to attention.

Results of Automated Theme Scanning: Fail

REQUIRED: This theme doesn’t seem to support the standard avatar functions. Use get_avatar or wp_list_comments to add this support.
REQUIRED: This theme doesn’t seem to display tags. Modify it to display tags in appropriate locations.
REQUIRED: The theme doesn’t have post pagination code in it. Use posts_nav_link() or paginate_links() or next_posts_link() and previous_posts_link() to add post pagination.
REQUIRED: The theme doesn’t have comment pagination code in it. Use paginate_comments_links() or next_comments_link() and previous_comments_link() to add comment pagination.
REQUIRED: Could not find wp_list_comments in the PHP files. The theme must use wp_list_comments() to display comments.
REQUIRED: Could not find wp_link_pages in the PHP files. The theme must use wp_link_pages() to provide for multi-page posts.
REQUIRED: Could not find wp_head in the PHP files. The header of the page must have wp_head() inside the html head tags.
REQUIRED: Could not find wp_footer in the PHP files. The footer of the page must have the wp_footer() call before the ending /body.
REQUIRED: Could not find post_class in the PHP files. The post_class() function should be called from within the wrapper around a post.
REQUIRED: Could not find language_attributes in the PHP files. The language_attributes() function must be called inside the html tag.
REQUIRED: Could not find content_width in the PHP files. The content_width variable does not appear to be set in the functions.php file.
REQUIRED: Could not find comments_template in the PHP files. The theme must use comments_template() to display comments.
REQUIRED: Could not find comment_form in the PHP files. The theme must use comment_form() to display the comment reply form.
REQUIRED: Could not find comment-reply in the PHP files. The theme must enqueue the comment-reply script on pages where there are comments displayed.
REQUIRED: Could not find charset in the PHP files. There must be a charset defined in the Content-Type or the meta charset tag in the head.
REQUIRED: Could not find body_class in the PHP files. The body_class() function should be called from within the starting body tag.
REQUIRED: Could not find automatic-feed-links in the PHP files. You must have add_theme_support(‘automatic-feed-links’) called from the after_setup_theme action hook in the functions.php file.
REQUIRED: Could not find DOCTYPE in the PHP files. A DOCTYPE declaration must be in the header of the page.
RECOMMENDED: The CSS is missing the License.
RECOMMENDED: The CSS is missing the License URI.
RECOMMENDED: No reference to the_post_thumbnail() was found in the theme. It is recommended that the theme implement this functionality instead of using custom fields for thumbnails.
RECOMMENDED: No reference to post-thumbnails was found in the theme. If the theme has a thumbnail like functionality, it should be implemented with add_theme_support(‘post-thumbnails’) in the functions.php file.
RECOMMENDED: No reference to add_editor_style() was found in the theme. It is recommended that the theme implement editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.
RECOMMENDED: No reference to add_custom_image_header() was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
RECOMMENDED: No reference to add_custom_background() 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.
INFO: No reference to nav_menu’s was found in the theme. Note that if your theme has a menu bar, it is required to use the WordPress nav_menu functionality for it.

REQUIRED: Could not find DOCTYPE in the PHP files. A DOCTYPE declaration must be in the header of the page.

How does that one figure then, is that list a result of simply skinning a parent theme i.e a stylesheet but no files as such, regardless bp-deafult may pass but child themes will struggle, not really a great inspiration to develop BP child themes All the more reason to develop full blown themes really.

No header.php in child theme. I think they just scan the zip and if things are not found those errors pop up. It’s just unnerving to upload and get all that back. When I test with the test plugin everything passes based on latest bp-default. There really wasn’t that much wrong before aside from comments missing in page.php and some CSS. Good thing is they are finding some bad mark-up along the way.

I agree that full themes are better. I just have that widget page template theme in the repo that people really want. All it is is a page template and CSS plus functions for widget areas.

@djpaul can we include the widget page template in bp-default as an option? I’ll mark it all up and add it as a patch.

I just have that widget page template theme in the repo that people really want. All it is is a page template and CSS plus functions for widget areas.

Ah ok, see what you mean and the scan is naturally unable to adjust it’s parameters.

Including something like a usable template that can be set as a static home page complete with widget areas seems like a good idea ( seems a common requirement I’ve two versions I wrote/am writing that I use and would probably always use a static custom front page ) and should be easy to do without impacting anything, it ought to go in, I’ll second the motion , the only minor thing to tackle would be including styles for it or switching in styles.

Same for me, I wanted to update the custom community theme, the update is full of bug fixes and improvements. But I do not get it in. After Results of Automated Theme Scanning: Fail, I wrote like @modemlooper in the ticket, and they approved it manually.
But still its not listen.
It looks like its not possible for the reviewers, to set a theme manual to approved.https://themes.trac.wordpress.org/ticket/2677

Like @pcwriter, I now full concentrated on 1.3. But actually would love to provide the 1.2.7 users with the fixed theme before we move on….

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Child themes fail scan when added to repo.’ is closed to new replies.