WordPress.org

Forums

WPDB Profiling
Deprecated functions (3 posts)

  1. aradams
    Member
    Posted 4 years ago #

    Greetings,
    This plugin contains a couple of deprecated functions. It throws the following errors in debug mode:
    Notice: get_settings is deprecated since version 2.1! Use get_option() instead...
    and:
    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...
    Thank you.

    http://wordpress.org/extend/plugins/wpdb-profiling/

  2. fiskhandlarn
    Member
    Posted 3 years ago #

    Also, when not logged in:

    Notice: Undefined index: show_queries in \wp-content\plugins\wpdb-profiling\wpdb-profiling.php on line 72

    Thanks.

  3. fiskhandlarn
    Member
    Posted 3 years ago #

    I made some alterations to the plugin:
    http://pastebin.com/JybJnuRY

    As far as I can tell it solves the above issues. I haven't tried the different user level settings though, but it displays for admins and not for regular users.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPDB Profiling
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic