[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 04:03: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 | Resolution:
Keywords: | Focuses: docs
--------------------------+------------------------------
Comment (by knutsp):
Inspecting the database table `wp_comments` on my site, where I recently
left a comment as a logged in user, I see my display name in the
`comment_author` column. This display name is different from my login.
This name is shown on the front as the name or identity of the commenter.
For not logged in users the property, and the column, contains the name
given by the (anonymous) commenter through the comment form field. Such
commenter may not have a login at all (not registered).
Did you also dump the `user_id` to verify that the comment is from a
logged in user?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35464#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list