Deprication warning
-
I get the following warning when running admin with DEBUG flag on:
Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in …\site\wp-includes\functions.php on line 3193
Changing the following:
public function adminMenu() { add_options_page( 'Search Exclude', 'Search Exclude', 10, 'search_exclude', array($this, 'options') ); }to:
public function adminMenu() { add_options_page( 'Search Exclude', 'Search Exclude', 'manage_options', 'search_exclude', array($this, 'options') ); }fixes the issue.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Deprication warning’ is closed to new replies.