Opened 17 years ago
Closed 17 years ago
#10742 closed defect (bug) (fixed)
Using 'style' => 'ol' in wp_list_comments breaks js
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.9 | Priority: | low |
| Severity: | trivial | Version: | 2.8.4 |
| Component: | Comments | Keywords: | has-patch, tested |
| Focuses: | Cc: |
Description
Using
<?php wp_list_comments(array('style' => 'ol')); ?>
in comments.php causes the Reply link to jump to the comment form at the bottom of the list instead of inserting the form within the comment list.
Confirmed using the default theme with no active plugins.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
I have also encountered this error. While the comment walker can be entirely overridden to bypass the issue, by default the comment walker will not form ol lists the same as ul lists because of the following bits of code in the function start_el:
a simple change to the following will prevent users having to override the comment walker to achieve an ol with js functionality:
I will attach a patch.