Developer Tools
[resolved] Developer Tools has_cap error (2 posts)

  1. blu42media
    Posted 5 years ago #

    I have a fresh install of WordPress 3.1.2 and I loaded your plug v. 1.1.1. I'm seeing this in the admin:

    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/calmusic/public_html/sites/solutioniq/wp-includes/functions.php on line 3387

    Any ideas?

  2. User Removed
    Plugin Author

    Posted 5 years ago #

    You're seeing this error because of 2 reasons:

    1: You have define('WP_DEBUG', true); enabled in wp-config.php

    2: I am using a deprecated value in the add_menu_page() function, which technically still works if you don't have debugging enabled.

    I made the fix for v1.1.2, thanks for the catch.
    In the mean time, you can fix this by updating line 164 of:

    $developerToolsPage = add_menu_page('Developer Tools', 'Developer Tools', 10, DEVELOPER_TOOLS_PAGE_SLUG, array(&$this, 'AdminUiPageContent'));

    $developerToolsPage = add_menu_page('Developer Tools', 'Developer Tools', 'activate_plugins', DEVELOPER_TOOLS_PAGE_SLUG, array(&$this, 'AdminUiPageContent'));

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic