[wp-trac] [WordPress Trac] #34918: Orphaned Comments From Nonexistent Post Type Causes Capability Warnings in Admin

WordPress Trac noreply at wordpress.org
Thu Jul 21 10:29:14 UTC 2016


#34918: Orphaned Comments From Nonexistent Post Type Causes Capability Warnings in
Admin
------------------------------------------+-----------------------------
 Reporter:  Funkatronic                   |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  Comments                      |     Version:  4.4
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  administration
------------------------------------------+-----------------------------

Comment (by UmeshSingla):

 Attached a patch for hiding the comments if associated post type is not
 available.

 WooCommerce comments were filling up my debug log after I deactivated the
 plugin, the patch fixes it for me.

 Although, I guess I'd need to look up other core files to add a similar
 check if required elsewhere.

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


More information about the wp-trac mailing list