WordPress.org

Make WordPress Core

Ticket #35464: 35464.3.diff

File 35464.3.diff, 667 bytes (added by meitar, 4 years ago)

Docblock with detailed description of what WP_Comment::$comment_author contains for commenters if they are logged in and if they are not.

  • class-wp-comment.php

     
    3333        public $comment_post_ID = 0;
    3434
    3535        /**
    36          * Comment author ID.
     36         * Comment author name.
    3737         *
     38         * If the commenter is not logged in, this contains the name
     39         * written in the comment form. If the commenter is logged in, it
     40         * contains the commenter's display name.
     41         *
     42         * To determine whether the comment author was logged in or not,
     43         * test the {@see 'user_id'} member variable for a non-zero value.
     44         *
    3845         * @since 4.4.0
    3946         * @access public
    4047         * @var string