[wp-trac] [WordPress Trac] #35356: wp_list_comments ignores $comments parameter
WordPress Trac
noreply at wordpress.org
Wed Jan 20 05:23:04 UTC 2016
#35356: wp_list_comments ignores $comments parameter
--------------------------+---------------------------
Reporter: felser | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: high | Milestone: 4.4.2
Component: Comments | Version: trunk
Severity: normal | Resolution: fixed
Keywords: fixed-major | Focuses:
--------------------------+---------------------------
Changes (by dd32):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"36356"]:
{{{
#!CommitTicketReference repository="" revision="36356"
Comments: Always respect `$comments` array passed to `wp_list_comments()`.
[36157] fixed a bug whereby `wp_list_comments()` would not properly
recognize
custom pagination arguments. See #35175. However, it inadvertently
introduced
a bug that caused any `$comments` array explicitly passed to the function
to be
ignored, when that array was accompanied by pagination arguments that
differ
from those in `$wp_query`. We address this bug by moving the logic
introduced
in [36157] inside a block that only fires when no `$comments` array has
been
provided to the function.
Merges [36276] to the 4.4 branch.
Props ivankristianto, boonebgorges.
Fixes #35356.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35356#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list