-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check and deactivate correctly if PHP req. not met
While `current_user_can()` is available at the time the plugins are being loaded, one of the later functions, `wp_get_current_user()` is not. This solution still checks for the PHP level at plugin parsing time, but if it's not sufficient, then functions are defined and hooked in to `plugins_loaded` to deactivate and show a notice. Fixes #7
- Loading branch information
Showing
1 changed file
with
31 additions
and
24 deletions.
There are no files selected for viewing
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