WordPress.org

Ready to get started?Download WordPress

Forums

Code Embed
[resolved] Debug level warnings (2 posts)

  1. termite2
    Member
    Posted 2 years ago #

    Hello,

    most of the plugin seems to work, however the plugin apparently relies on deprecated functionality, so when debugging is enabled it triggers 4 warnings on every admin page:

    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.
    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead.
    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.
    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead.

    The warnings appear on all admin pages. Was this plugin tested with 3.3.1 properly?

    http://wordpress.org/extend/plugins/simple-embed-code/

  2. dartiss
    Member
    Posted 2 years ago #

    Thanks for letting me know.

    There are 4 warnings, but only 2 unique. The first (has_cap) I'll add to my list to sort.

    The other, about using add_contextual_help... well, first of all, my plugin hasn't been updated with 3.3 compatibility so give me chance ;) Also, it may be deprecated BUT the replacement function was only added in 3.3 - therefore I'd have to restrict the plugin to WP 3.3. Not surprisingly, I won't be intending to change it for now!

    David.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic