WordPress.org

Support

Support » Plugins and Hacks » WordPress Importer » [Resolved] [Plugin: WordPress Importer] Notice: has_cap was called – deprecated – DEBUG on

[Resolved] [Plugin: WordPress Importer] Notice: has_cap was called – deprecated – DEBUG on

  • 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/

Viewing 1 replies (of 1 total)
  • 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:

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: WordPress Importer] Notice: has_cap was called – deprecated – DEBUG on’ is closed to new replies.
Skip to toolbar