Closed pdewouters closed 10 years ago
Instead of passing a comments object, we can pass the post ID and run a WP_Comment_Query. Then we can use this in the widget class. It will be easier to test.
Instead of passing a comments object, we can pass the post ID and run a WP_Comment_Query. Then we can use this in the widget class. It will be easier to test.