WordPress.org

Ready to get started?Download WordPress

Forums

Youtube Feeder
Deprecated argument in 'has_cap' (3 posts)

  1. GreenImp
    Member
    Posted 1 year ago #

    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/

  2. GreenImp
    Member
    Posted 1 year ago #

    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.

  3. GreenImp
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.