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 adding admin page other than through add_theme_page() #11

Closed
2 tasks done
jrfnl opened this issue Jul 11, 2016 · 0 comments
Closed
2 tasks done

Comments

@jrfnl
Copy link

jrfnl commented Jul 11, 2016

Rule:

Admin Pages only allowed via add_theme_page().

Ref: https://make.wordpress.org/themes/handbook/review/required/theme-check-plugin/#admin-menu

Theme check file covering this rule:

https://github.com/Otto42/theme-check/blob/master/checks/admin_menu.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

1 participant