[wp-trac] [WordPress Trac] #33947: get_comment_class raises a PHP notice for non-registered users
WordPress Trac
noreply at wordpress.org
Mon Sep 21 16:55:00 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):
Hint: In this case we'd want to bail early and return an empty array if
the comment object is invalid. It would also be nice to have test coverage
for this if you'd like to try your hand at
[https://make.wordpress.org/core/handbook/testing/automated-testing
/#contributing-tests-to-wordpress adding a unit test].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33947#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list