Make WordPress Core


Ignore:
Timestamp:
09/09/2015 02:59:54 AM (9 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-functions.php

    r33963 r33964  
    12031203 * @since 1.0.0
    12041204 *
    1205  * @param int $comment_id Comment ID
     1205 * @param int|WP_Comment $comment_id Comment ID or WP_Comment object
    12061206 * @return false|string Status might be 'trash', 'approved', 'unapproved', 'spam'. False on failure.
    12071207 */
Note: See TracChangeset for help on using the changeset viewer.