WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32366, comment 8


Ignore:
Timestamp:
05/13/2015 12:46:54 AM (6 years ago)
Author:
justindocanto
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32366, comment 8

    initial v1  
    44Bummer. Good to know.
    55
    6 I'm wondering if building in logic that we only call wp_count_comments() if that menu item is set would do it. It's dirty, but it could work. Everything else has some sort of way to stop the querying of the entire comments table.
     6I'm wondering if there's a way we can stop the menu item from being created and the query from ever happening via some sort of filter. Everything else has some sort of way to stop the querying of the entire comments table.
    77
    88The total comment count in the 'Right Now' dashboard widget can be disabled and the query prevented by unsetting the 'right now' meta box using the 'wp_dashboard_setup' action.