WordPress.org

Ready to get started?Download WordPress

Forums

Admin Menu Editor
Argument in current_user_can() (4 posts)

  1. greencode
    Member
    Posted 7 months ago #

    Just going through my site and cleaning a few things up and noticed this, when running the "Log Deprecated Notices" plugin.

    Argument in current_user_can()
    Used in wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php on line 1726.

    Just wondering if this is something to be concerned with.

    http://wordpress.org/plugins/admin-menu-editor/

  2. Janis Elsts
    Member
    Plugin Author

    Posted 7 months ago #

    Is that the entire message? It doesn't seem to make much sense as-is since it doesn't say what's wrong with the argument.

    I would guess that it probably has something to do with user levels. If so, it's nothing to worry about. The plugin itself doesn't rely on user levels, but it may need to check them occasionally if the admin menu or another plugin uses them.

  3. greencode
    Member
    Posted 7 months ago #

    Hi. Thanks for getting back so quickly. This what the full message says…

    Argument in current_user_can()
    Used in wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php on line 1726.

    Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.

    Deprecated in version 2.0.

  4. Janis Elsts
    Member
    Plugin Author

    Posted 7 months ago #

    I see, so it really was about user levels. In that case, it's nothing to be concerned with.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.