WordPress.org

Forums

issuupress
[resolved] Deprecated Argument Notice (2 posts)

  1. Michael Cain
    Member
    Posted 1 year ago #

    Activating issuupress gives the following notice: 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.

    On L289 of issuupress.php, a user level (10) is given as the third argument for add_options_page(). As of 2.0, this should be a role or capability (i.e. 'administrator' or 'activate_plugins').

    I've fixed this on my client's site, but would appreciate an update so that it doesn't break the next time they update.

    https://wordpress.org/plugins/issuupress/

  2. pixeline
    Member
    Plugin Author

    Posted 6 months ago #

    Okay, thanks for the heads up. Will be fixed in the upcoming release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • issuupress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.