• efc

    (@eceleste)


    I am getting this notice when I have this plugin active and debugging turned 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 /home/bitnami/wordpress/wp-includes/functions.php on line 3844

    I traced this to the use of 10 for a user capability in the plugin. I can eliminate this warning if I replace line 21 with the following:

    add_options_page('Phpinfo', 'Phpinfo', 'edit_dashboard', __FILE__, 'dprx_phpinfo_manage_page');

    Maybe you would consider an update to the plugin with this fix?

    https://ww.wp.xz.cn/plugins/phpinfo/

The topic ‘phpinfo plugin throwing deprecated notice’ is closed to new replies.