WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Artiss Code Embed] Debug level warnings

[Resolved] [Plugin: Artiss Code Embed] Debug level warnings

  • 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/

Viewing 1 replies (of 1 total)
  • Plugin Author dartiss
    Participant

    @dartiss

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Artiss Code Embed] Debug level warnings’ is closed to new replies.