Opened 4 years ago
Closed 4 years ago
#10742 closed defect (bug) (fixed)
Using 'style' => 'ol' in wp_list_comments breaks js
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.9 |
| Component: | Comments | Version: | 2.8.4 |
| Severity: | trivial | Keywords: | has-patch, tested |
| Cc: | esmi, scribu@… |
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)
- Component changed from General to Comments
- Milestone changed from Unassigned to 2.8.5
- Owner set to junsuijin
- Priority changed from normal to low
- Severity changed from normal to trivial
- Status changed from new to assigned
- Cc scribu@… added
- Keywords comments removed
- Milestone changed from 2.8.5 to 2.9
comment:4
markjaquith — 4 years ago
- Resolution set to fixed
- Status changed from assigned to closed
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.