woothemes/woocommerce — pull request #5005 by splashingpixels (2014-03-01 06:12:48+00:00)
Title: shop order - fixes non object error on comments when order is in the tra...

In the order page if the order is in the trash, comment notes is causing non object error because by default get_comments does not look at comments which is tied to posts that are in the trash.

This fix checks to see if the post is in the trash and handle accordingly.