Meta Tag Manager
Deprecated usage (2 posts)

  1. krbvroc1
    Posted 4 years ago #

    Turning on WP-DEBUG yields warning messages due to this plugin:

    '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 problem is line 32:

    add_options_page() uses the deprecated hard coded capability of the number 8. That should probably be replaced with 'manage_options'.

    When you get a chance can you make this small change and update so WP_DEBUG does not complain?



  2. krbvroc1
    Posted 4 years ago #

    Another problem is the the deprecated usage of wp specialchars.

    On line 44 and 45, you should change to:

    $name = esc_html ( $meta [0] );
    $content = esc_html ( $meta [1] );

    That will get rid of a bunch of DEBUG warnings.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Meta Tag Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic