[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 14:08:49 UTC 2015


#33947: get_comment_class raises a PHP notice for non-registered users
--------------------------------------+---------------------------
 Reporter:  walterebert               |       Owner:  boonebgorges
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.4
Component:  Comments                  |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-unit-tests has-patch  |     Focuses:  template
--------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34454"]:
 {{{
 #!CommitTicketReference repository="" revision="34454"
 Bail early when invalid ID is passed to `get_comment_class()`.

 This helps to avoid PHP notices later in the function.

 Props walterebert, dipesh.kakadiya, DrewAPicture.
 Fixes #33947.
 }}}

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


More information about the wp-trac mailing list