[wp-trac] [WordPress Trac] #35464: Documentation of WP_Comment incorrectly describes $comment_author as an ID

WordPress Trac noreply at wordpress.org
Fri Jan 15 02:24:15 UTC 2016


#35464: Documentation of WP_Comment incorrectly describes $comment_author as an ID
--------------------------+-----------------------------
 Reporter:  meitar        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 Super minor, but the docblock for `WP_Comment::$comment_author` says it's
 where the "comment author ID" is stored, but it actually stores the
 comment author's username. The comment author's ID is actually stored in
 `WP_Comment::$user_id`, whose docblock is correct.

 A trivial patch is attached to this ticket to show what I mean.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35464>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list