WordPress.org

Make WordPress Core

Ticket #43695: 43695.patch

File 43695.patch, 947 bytes (added by hilayt24, 2 months ago)

A note is added to the docs to notify the user about the issue.

  • src/wp-includes/comment-template.php

     
    20282028 * Displays a list of comments.
    20292029 *
    20302030 * Used in the comments.php template to list comments for a particular post.
    2031  *
     2031 * 
    20322032 * @since 2.7.0
    20332033 *
    20342034 * @see WP_Query->comments
     
    20652065 * @param WP_Comment[] $comments Optional. Array of WP_Comment objects.
    20662066 * @return void|string Void if 'echo' argument is true, or no comments to list.
    20672067 *                     Otherwise, HTML list of comments.
     2068 *
     2069 * Note: While using the custom call back funciton the $args and $depth parameters will interchange.
    20682070 */
    20692071function wp_list_comments( $args = array(), $comments = null ) {
    20702072        global $wp_query, $comment_alt, $comment_depth, $comment_thread_alt, $overridden_cpage, $in_comment_loop;