[wp-trac] [WordPress Trac] #33947: get_comment_class raises a PHP notice for non-registered users

WordPress Trac noreply at wordpress.org
Tue Sep 22 10:25:33 UTC 2015


#33947: get_comment_class raises a PHP notice for non-registered users
------------------------------------------+------------------------------
 Reporter:  walterebert                   |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Comments                      |     Version:  trunk
 Severity:  normal                        |  Resolution:
 Keywords:  needs-unit-tests needs-patch  |     Focuses:  template
------------------------------------------+------------------------------

Comment (by DrewAPicture):

 Replying to [comment:3 walterebert]:
 > It makes sense to me, to at least have a "comment" / "comment type"
 class, instead of no class at all.
 >
 > I will look into writing a unit test for this.
 >

 We actually introduced `WP_Comment` in this cycle, so that's how I know
 it's probably an invalid comment ID being passed. See [33891] :-)

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


More information about the wp-trac mailing list