WordPress.org

Forums

Wonderm00n's Simple Facebook Open Graph Meta Tags
[resolved] has_cap was called with an argument (3 posts)

  1. flynsarmy
    Member
    Posted 9 months ago #

    This plugin causes the following warning when DEBUG_MODE is true:

    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.

    The fix, open wonderm00n-open-graph.php line 291 and change:
    add_options_page('Wonderm00n\'s Open Graph', 'Wonderm00n\'s Open Graph', 9, basename(__FILE__), 'wonderm00n_open_graph_admin');
    to
    add_options_page('Wonderm00n\'s Open Graph', 'Wonderm00n\'s Open Graph', 'manage_options', basename(__FILE__), 'wonderm00n_open_graph_admin');

    http://wordpress.org/extend/plugins/wonderm00ns-simple-facebook-open-graph-tags/

  2. wonderm00n
    Member
    Plugin Author

    Posted 8 months ago #

    Thanks flynsarmy,
    I've released a new version with this bugfix.

  3. wonderm00n
    Member
    Plugin Author

    Posted 8 months ago #

    Topic resolved

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.