easydigitaldownloads/Easy-Digital-Downloads — pull request #2449 by mintplugins (2014-07-12 22:38:41+00:00)
Title: Remove button needs true page/post id

In a situation where you are running a loop on a page and have the cart loading inside that loop somewhere, $post is actually not the true post object for the page or post we are on.

If we use $wp_query instead, we will get the id of the parent page no matter what.