Make WordPress Core

Opened 9 days ago

#49181 new defect (bug)

Clarify accepted values for style argument in wp_list_comments()

Reported by: jeremyfelt Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Comments Keywords: needs-patch good-first-bug
Focuses: docs Cc:
PR Number:


wp_list_comments() accepts style as part of the arguments it passes to the comment walker to determine how a list of comments should be displayed.

  • If div is passed, no markup is output in the walker's start_lvl() method.
  • If ol is passed, ol markup is output.
  • If ul or any other value is passed, ul markup is output.

The functions docs imply right now that only ol and ul are valid. It should clarify that div will result in no additional list markup.

Change History (0)

Note: See TracTickets for help on using tickets.