[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:44:27 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 meitar):
Replying to [comment:1 knutsp]:
> It's not `login`. It's the commenter's name. For a logged in commenter
it's the display name, AFAIK.
I don't think that's correct. A simple
`var_dump($comment->comment_author)` (where `$comment` is a `WP_Comment`
object) returns the user's ''login'' name, not the user's display name,
even when one is set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35464#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list