[wp-trac] [WordPress Trac] #36571: Add `$comment` parameter to `get_comment_author_email_link()`

WordPress Trac noreply at wordpress.org
Mon Apr 18 18:53:35 UTC 2016


#36571: Add `$comment` parameter to `get_comment_author_email_link()`
-------------------------+------------------------------
 Reporter:  flixos90     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:  2.7
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by boonebgorges):

 I know that the default value of `0` for `$comment` is intended to trigger
 the `empty()` check at the beginning of `get_comment()`. IMHO it would be
 more transparent if the default value were `null`, since this would
 indicate that no value is being provided (rather than a value of `0`,
 which makes me do a double-take when I read the function signature, since
 a comment can't have an ID of 0).

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


More information about the wp-trac mailing list