WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Youtube Feeder] Deprecated argument in 'has_cap'

[Plugin: Youtube Feeder] Deprecated argument in 'has_cap'

  • GreenImp
    Member

    @greenimp

    Hi,
    When I activate the plugin, the following error is displayed at the top of the admin pages:
    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 /var/www/vhosts/exeterchiefs.co.uk/httpdocs/wp-includes/functions.php on line 2712

    I can’t trace it back to where it is origianating from, in your plugin, as you don’t seem to make any calls to ‘has_cap’.

    Regards,
    Lee

    http://wordpress.org/extend/plugins/youtube-feeder/

Viewing 2 replies - 1 through 2 (of 2 total)
  • GreenImp
    Member

    @greenimp

    Just a follow-up; it seems that, due to this error, I can’t see the settings page in the menu for the plugin either.

    GreenImp
    Member

    @greenimp

    Sorry, another update; I’ve nailed it down to youtube-feeder.php, line 595:
    add_options_page('YoutubeFeeder', 'YoutubeFeeder', 9, 'YoutubeFeeder', array(&$this, 'printAdminPage'));

    Which is being set up on line 54.
    If I comment out line 595, the error goes away.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Youtube Feeder] Deprecated argument in 'has_cap'’ is closed to new replies.