[wp-hackers] Rewriting Comments for html5 validity
wordpress at zed1.com
Mon Feb 1 18:28:06 UTC 2010
On 1 February 2010 17:57, Matthew Simo <matthew.a.simo at gmail.com> wrote:
> Hi all, I'm working on rewriting the comments for html5 but I'm having
> issues filtering the start_lvl, end_lvl, & end_el. They are in
> the Walker_Comment class, is that what's causing the filtering problem? How
> can I get around this?
> Any ideas? I'm passing style=article & my callback function that handles
> new comment ( <?php
> wp_list_comments('style=article&callback=html5_comment'); ?> ), I just
> get the previously stated functions to filter.
I'm pretty sure you need to add in &end-callback=your_end_comment_func,
which I'm guessing should return '</article>'
More information about the wp-hackers