Debug Bar
Issue when using with WP 3.4 on an admin page added by a plugin (3 posts)

  1. Cindy
    Posted 4 years ago #

    I use this plugin when developing my plugin (Cleverness To-Do List). My plugin creates it's own menu item and subpages in the WordPress admin.

    Before I upgraded to version 3.4 of WordPress, the debug bar worked as I expected, showing the correct number of queries for the pages. Now it only shows that there are 14 queries on each page (and it doesn't list any of my plugin's queries).

    I use add_menu_page and add_submenu_page to add the menu items.


  2. Mark Jaquith
    WordPress Lead Dev
    Plugin Author

    Posted 4 years ago #

    What kind of queries is your plugin doing? Are you using a persistent object cache that may be making it so that WordPress doesn't need to make those queries anymore? Is SAVEQUERIES defined as true?

  3. Cindy
    Posted 4 years ago #

    Yes, SAVEQUERIES is set as true.

    If I use a different debug plugin, such as Black Box (edited to use on the backend - http://wordpress.org/extend/plugins/blackbox-debug-bar/), the correct number of queries shows up on the page. Black Box shows 64 queries whereas Debug Bar shows 14.

    I'm using new WP_Query( $args ) to get custom post entries. I'm not doing any object caching.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Debug Bar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.