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

[New sniff] Check for the use of iframes #22

Closed
2 tasks
carolinan opened this issue Jul 12, 2016 · 0 comments
Closed
2 tasks

[New sniff] Check for the use of iframes #22

carolinan opened this issue Jul 12, 2016 · 0 comments

Comments

@carolinan
Copy link

Rule:

WARNING : Using iframes is discouraged. All resources should be included in the theme. iframes are sometimes used to load unwanted adverts and code on your site.

Ref: https://make.wordpress.org/themes/handbook/review/required/#stylesheets-and-scripts

Theme check file covering this rule:

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

To do:

  • Create unit tests
  • Create new sniff
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

3 participants