Skip to content

Instantly share code, notes, and snippets.

@grappler
Last active July 13, 2016 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save grappler/4e301b9b0fa3d40ce52dd8877006853b to your computer and use it in GitHub Desktop.
Save grappler/4e301b9b0fa3d40ce52dd8877006853b to your computer and use it in GitHub Desktop.
[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