WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. flynsarmy
    Member
    Posted 2 years 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 1 year ago #

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

  3. wonderm00n
    Member
    Plugin Author

    Posted 1 year ago #

    Topic resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.