Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Missing theme files that are not required #134

Open
justintadlock opened this issue Mar 7, 2019 · 8 comments
Open

Missing theme files that are not required #134

justintadlock opened this issue Mar 7, 2019 · 8 comments
Labels
Status: PR Exists A PR is already opened for this issue Type: Bug There is a bug in the plugin.

Comments

@justintadlock
Copy link

Theme Sniffer is erroneously requiring several theme files on https://github.com/WPTRT/theme-sniffer/blob/master/src/callback/class-run-sniffer-callback.php#L783

comments.php

This file is not required. What's required is a call to the comments_template() function, which can reference any file name.

functions.php

Themes do not need a functions.php.

screenshot.png

I believe we also allow a screenshot.jpg at .ORG. Other image file types may be allowed. Need to check.

@justintadlock justintadlock added the Type: Bug There is a bug in the plugin. label Mar 7, 2019
@justintadlock
Copy link
Author

There's some crossover with this issue and #128.

@pattonwebz
Copy link
Member

I have some work related to this issue inside of #129.

@timelsass
Copy link
Member

@justintadlock do you know who can update the handbook reference - I thought it was weird comments.php was listed as a requirement and had updated a few themes to account for that.

@pattonwebz
Copy link
Member

@timelsass I can update the page if we come up with a more correct wording for it. The current text is Include comments.php (via comments_template()). which I agree is incorrect.

@justintadlock
Copy link
Author

I don't have access to the themes handbook (just the Make blog).

@pattonwebz - Because the handbook page is referring to required files, maybe it can simply be removed. The requirement of comments_template() should be listed elsewhere.

Or, possibly have a sub-section under that of "maybe required" files and cover all the /wp-includes/theme-compat things that a theme may need to have if using certain templates/features.

@timelsass
Copy link
Member

Yeah thanks for linking that @justintadlock that's the page I was thinking of

timelsass referenced this issue in timelsass/theme-sniffer Mar 8, 2019
dingo-d added a commit that referenced this issue Mar 8, 2019
@carolinan
Copy link

Doesn't the uploader also require sidebar.php? All 3 would need to require the same files, uploader, theme check, theme sniffer (And not show errors for child themes).

@justintadlock
Copy link
Author

Doesn't the uploader also require sidebar.php?

No. I have many themes without that file.

What you're probably thinking of is: the sidebar check from TC is to see if dynamic_sidebar() is called in the scenario that a register_sidebar() call is found.

@dingo-d dingo-d added the Status: PR Exists A PR is already opened for this issue label Mar 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Status: PR Exists A PR is already opened for this issue Type: Bug There is a bug in the plugin.
Projects
None yet
Development

No branches or pull requests

5 participants