Skip to content

Instantly share code, notes, and snippets.

@grappler
Last active July 13, 2016 17:21
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
[New sniff] No disabling of the admin toolbar
#### Rule:
**ERROR** : No hiding of the admin bar - check if `show_admin_bar( false )` is called or if `add_filter( 'show_admin_bar', '__return_false' )` is somewhere in the code.
Ref: https://make.wordpress.org/themes/handbook/review/required/#core-functionality-and-features
#### Theme check file covering this rule:
https://github.com/Otto42/theme-check/blob/master/checks/adminbar.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