[wp-trac] [WordPress Trac] #33638: Comment template functions should accept full comment object
WordPress Trac
noreply at wordpress.org
Wed Sep 9 02:59:56 UTC 2015
#33638: Comment template functions should accept full comment object
----------------------------+------------------
Reporter: wonderboymusic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------
Comment (by wonderboymusic):
In [changeset:"33964"]:
{{{
#!CommitTicketReference repository="" revision="33964"
In `WP_Comments_List_Table`, favor passing `WP_Comment` instances instead
of `$comment_ID` to template functions. This allows us to bypass
unnecessary cache lookups and simply pass the object through when it is
set.
See #33638.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33638#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list