WordPress.org

Forums

WordPress Importer
[resolved] Notice: has_cap was called - deprecated - DEBUG on (2 posts)

  1. bobbingwide
    Member
    Posted 3 years ago #

    I'm trying to analyse a problem with WordPress-Importer so I have defined DEBUG as true. I received this notice when choosing Tools > Import.

    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 C:\apache\htdocs\cookie-cat\wp-includes\functions.php on line 3551

    I shouldn't be getting this message.
    It's not particularly helpful either as it gives no indication of the actual function in error.

    http://wordpress.org/extend/plugins/wordpress-importer/

  2. bobbingwide
    Member
    Posted 3 years ago #

    The message was caused by the underconstruction plugin which is passing a value of 8 as the third parameter ( $capabilities ) of add_options_page(). Changing this to "manage_options" eliminated the Notice:

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic