Fix for PHP notice
When I run this plugin I see an error:
Notice: has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /srv/www/wordpress-default/wp-includes/functions.php on line 2923
This is caused by line 70 in
gad-admin-options.php, which specifies a user level 8 when adding the options page. User level 8 is equivalent to an administrator, so replacing
manage_optionswill work just as well.
Here’s a gist with a patch: https://gist.github.com/simonwheatley/5850804
Hope this helps.
- The topic ‘Fix for PHP notice’ is closed to new replies.