[wp-hackers] Rewriting Comments for html5 validity

scribu scribu at gmail.com
Mon Feb 1 19:03:16 UTC 2010


On Mon, Feb 1, 2010 at 8:35 PM, Matthew Simo <matthew.a.simo at gmail.com>wrote:

> Thanks for the replies,
>
> @ sribu - I wanted to avoid writing a whole new class My_Comment_Walker,
> but
> the more I look into it seems that is route that needs taking, it's a shame
> too, I only needed to add 4 lines of code. Thanks!
>

You only need to overwrite the methods that you want. And you can call
parent::start_lvl().

That's the beauty of class inheritance ;)


-- 
http://scribu.net


More information about the wp-hackers mailing list