Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use core favicon #70

Closed
2 of 4 tasks
khacoder opened this issue Aug 22, 2016 · 2 comments
Closed
2 of 4 tasks

Use core favicon #70

khacoder opened this issue Aug 22, 2016 · 2 comments

Comments

@khacoder
Copy link
Contributor

khacoder commented Aug 22, 2016

[New sniff] Check for different kinds of favicons and issue Error if found.

Rule type:

Error

Rule:

Use WordPress functionality and features first, if available.

Ref: https://make.wordpress.org/themes/handbook/review/required/#core-functionality-and-features

ERROR | Verify that no favicon / Apple icon / Windows tile / Android whatever they call it is being added from the theme. The current check is in Theme-Check plugin - /checks/favicon.php, but could definitely use some fine-tuning and improvement.

Theme check file covering this rule:

https://github.com/Otto42/theme-check/blob/master/checks/favicon.php

Decision needed:

Switch from WARNING in themecheck to ERROR in Sniff.

To do:

  • Create unit tests
  • Create new sniff
  • Adjust existing WPCS / PHPCS sniff and send in PR upstream.
  • Add existing sniffname sniff to the ruleset.
@khacoder khacoder self-assigned this Aug 22, 2016
@khacoder
Copy link
Contributor Author

I have this sniff ready to go and will upload after final testing.

@grappler
Copy link
Member

Changing it to an error makes sense as it was released in WP 4.3 and we have WP 4.6 now which is at least 3 versions ago...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants