Last active
July 13, 2016 17:21
-
-
Save grappler/4e301b9b0fa3d40ce52dd8877006853b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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