Is It Possible To Override A Core Class In WordPress

I am attempting to make the sidebar in WordPress be made of a single unordered list. I am about 99% of the way there, but to get to that last 1% I am going to have to change the way that Widgets generate.

To be more specific, in default-widgets.php, the class called WP_Widget_Recent_Comments, function widget, there is code that generated a <ul> tag. I would like to remove that code and just return the <li> tags.

Read More

Now I do not want to have to do this every time WordPress needs to be upgraded.

Can someone tell me what the best practices would be to do something like this? I am very interested in maintaining a dynamic sidebar, but I do not want to do this at the cost of upgradeability.

Related posts

Leave a Reply

1 comment