Wrong usage add_options_page function
-
Hi!
In sphinxsearch.php on line 395
add_options_page('Sphinx Search', 'Sphinx Search', 9, basename(__FILE__), array(&$this, 'print_admin_page'));
there is wrong arguments that throw an errorNotice: 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 /vagrant/wordpress/wp-includes/functions.php on line 3842
For fix change ‘9’ for other capability – https://codex.ww.wp.xz.cn/Roles_and_Capabilities
The topic ‘Wrong usage add_options_page function’ is closed to new replies.