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.


git-svn-id: https://develop.svn.wordpress.org/trunk@33964 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-09 02:59:54 +00:00
parent 38d374ab01
commit df637648e2
2 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -1202,7 +1202,7 @@ function wp_unspam_comment($comment_id) {
*
* @since 1.0.0
*
* @param int $comment_id Comment ID
* @param int|WP_Comment $comment_id Comment ID or WP_Comment object
* @return false|string Status might be 'trash', 'approved', 'unapproved', 'spam'. False on failure.
*/
function wp_get_comment_status($comment_id) {