[wp-trac] [WordPress Trac] #16956: Comments Being Pulled from Non-Existent Post Types

WordPress Trac noreply at wordpress.org
Fri Aug 28 12:29:57 UTC 2015


#16956: Comments Being Pulled from Non-Existent Post Types
-------------------------------------------------+-------------------------
 Reporter:  sterlo                               |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Posts, Post Types                    |  Release
 Severity:  normal                               |     Version:  3.1
 Keywords:  has-patch 2nd-opinion needs-unit-    |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by nofearinc):

 The problem seems to be pretty persistent and reproducible when
 `wp_dashboard_recent_comments` is invoked in the dashboard. Attached is a
 safer (in my opinion) workaround that doesn't touch the capabilities and
 runs the comment query against the available post types
 (`get_post_types()`).

 I have seen that particular issue numerous times on the same screen,
 always after deactivating a plugin registering another post type.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16956#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list