WordPress.org

Ready to get started?Download WordPress

Forums

GD Star Rating
has_cap deprecated (2 posts)

  1. sparkweb
    Member
    Posted 2 years ago #

    Hi Milan,

    Fantastic plugin! I just installed it on my dev site which is running with debug mode on and I noticed TONS of warnings all over the place. Most of them are:

    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 /xxxxxxx/httpdocs/wp-includes/functions.php on line 3551

    I think it should be current_user_can() instead.

    This doesn't really affect functionality on a front-facing site but it makes it pretty tough to use in the backend. It's actually a really good idea to develop with debug mode turned on (turn it on in wp-config.php).

    Thanks for listening to my little rant.

    http://wordpress.org/extend/plugins/gd-star-rating/

  2. Milan Petrovic
    Member
    Plugin Author

    Posted 2 years ago #

    Fixed in 1.9.15.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic