• Hi there, thanks a lot for this great plugin!

    After the update to the latest WP Version I have the following Notice popping up:

    
    Notice: has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in [...]/wp-includes/functions.php on line 4020
    

    I tested which plugin was causing it by activating them one-by-one. It seems like the bug lies somewhere in your code. Any ideas?

Viewing 1 replies (of 1 total)
  • Thread Starter Rasso Hilber

    (@nonverbla)

    Actually, the fix was quite simple: I just replaced line 272 with this:

    
    add_options_page('WP Roles at Registration', 'WP Roles at Registration', 'manage_options', 'wp-roles-at-registration', array($wp_rar_plugin, 'manage_allowed_roles_form'));
    

    , the difference being manage_options instead of 9.

Viewing 1 replies (of 1 total)
  • The topic ‘Depreciated Notice’ is closed to new replies.