Forums

GD Star Rating
has_cap called with deprecated variables (3 posts)

  1. wesswei
    Member
    Posted 6 months ago #

    Lines 13-19 in class.php use the old capabilities. These should be changed to the new ones.

    I've cleaned this up on my own, but it would behoove you to update your code!

    var $security_level = 'administrator';
        var $security_level_front = 'contributor';
        var $security_level_builder = 'contributor';
        var $security_level_setup = 'administrator';
        var $security_my_ratings = false;
        var $security_my_ratings_level = 'subscriber';
        var $security_users = 'subscriber';

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

  2. Milan Petrovic
    Member
    Posted 5 months ago #

    Much more parts use old caps. This will not be changed, it will require too much time to do, and plugin is only in maintenance, this current 1.9 branch is no longer actively in development.

  3. wesswei
    Member
    Posted 5 months ago #

    Much more parts use old caps. This will not be changed, it will require too much time to do, and plugin is only in maintenance, this current 1.9 branch is no longer actively in development.

    The only ones that caused problems for me were the above, which again were fixed by changing the numeric-based caps to the new term-based caps. I also had some errors along the lines of undefined index or variables.
    Are you developing a newer version of this? Are you on github or google code or other?
    We ended up not using this plugin and developing our own as it was vastly out of date and believe it or not way too robust for what we needed. Much props to the development of this plugin. Wish we could have used it. Please let me know if you use a code repo. I'd be happy to update your code if I get the chance.

Reply

You must log in to post.

About this Plugin

About this Topic