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

WordPress Trac noreply at wordpress.org
Mon Jan 20 17:11:09 UTC 2014


#16956: Comments Being Pulled from Non-Existent Post Types
----------------------------------------+-----------------------------
 Reporter:  sterlo                      |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Post Types                  |     Version:  3.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch commit 3.9-early  |
----------------------------------------+-----------------------------

Comment (by bobbingwide):

 A simple alternative workaround for the original problem is to delete any
 comment which causes this message to appear.

 '''Note:''' I haven't checked if this has already been reported but...
 Whatever solution is eventually chosen for this ticket, almost exactly the
 same logic should apply for the tests against the post_status object (
 $status_obj ) which are performed immediately after.
 $status_obj can also be null if a post_status that was previously valid is
 no longer registered.

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


More information about the wp-trac mailing list