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

WordPress Trac noreply at wordpress.org
Wed Sep 23 06:33:13 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 walterebert):

 My patch includes:

 1. Verification if a comment is a WP_Comment object.
 2. Unit test for `get_comment_class`.
 3. Format `get_comment_class` according to WordPress coding standards

--
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