[wp-trac] [WordPress Trac] #27007: problem using wp_list_comments with 'per_page' without calling comments_template
WordPress Trac
noreply at wordpress.org
Sun Feb 9 05:38:30 UTC 2014
#27007: problem using wp_list_comments with 'per_page' without calling
comments_template
--------------------------+------------------------------
Reporter: monotom | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by bcworkz):
The original arguments are not available to pass to `get_comment_link()`.
It appears nearly all the methods involved prior to that call are capable
of passing the arguments through. `wp_list_comments()` actually tries to
pass the arguments as `$r` in the call to `$walker->paged_walk()`. The
paged_walk() method is not overridden, so the call goes to
`Walker::paged_walk()` which only accepts 4 parameters, `$r` was the 5th!
This of course does not alone solve the corrupted link issue, but by
ensuring the arguments can actually get passed through the walker object
as was apparently intended would at least make it possible.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27007#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list