WordPress.org

Ready to get started?Download WordPress

Forums

Sociable
Using deprecated user capability functions (3 posts)

  1. beingzoe
    Member
    Posted 3 years ago #

    When testing themes with WP_DEBUG on this plugin is giving a deprecation notice regarding user capabilities.

    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.

    I am starting to use Sociable a lot and it would be great if this minor issue were resolved. Thank you BlogPlay for maintaining such a useful plugin/feature.

    http://wordpress.org/extend/plugins/sociable/

  2. beingzoe
    Member
    Posted 3 years ago #

    I'm not sure how to contact BlogPlay but if anyone involved with Sociable could replace line 1013:

    add_options_page('Sociable', 'Sociable', 8, 'Sociable', 'sociable_submenu');

    with

    add_options_page('Sociable', 'Sociable', 'manage_options', 'Sociable', 'sociable_submenu');

    I would really appreciate it. I love Sociable, and I love the WordPress plugin but the deprecated numeric 'has_cap' E_NOTICE is driving me crazy while I'm developing ;)

    Thanks.

  3. beingzoe
    Member
    Posted 3 years ago #

    Also could you search and replace:

    attribute_escape

    with:

    esc_attr

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic