{"action":"opened","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/8802","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8802/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8802/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8802/events","html_url":"https://github.com/woothemes/woocommerce/issues/8802","id":100663575,"number":8802,"title":"wc_customer_bought_product issues with previous purchases 2.4.3 ","user":{"login":"escobar022","id":6199499,"avatar_url":"https://avatars.githubusercontent.com/u/6199499?v=3","gravatar_id":"","url":"https://api.github.com/users/escobar022","html_url":"https://github.com/escobar022","followers_url":"https://api.github.com/users/escobar022/followers","following_url":"https://api.github.com/users/escobar022/following{/other_user}","gists_url":"https://api.github.com/users/escobar022/gists{/gist_id}","starred_url":"https://api.github.com/users/escobar022/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escobar022/subscriptions","organizations_url":"https://api.github.com/users/escobar022/orgs","repos_url":"https://api.github.com/users/escobar022/repos","events_url":"https://api.github.com/users/escobar022/events{/privacy}","received_events_url":"https://api.github.com/users/escobar022/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T00:22:12Z","updated_at":"2015-08-13T00:22:12Z","closed_at":null,"body":"There seems to be an issue when using the wc_customer_bought_product() function with existing purchases purchased prior to upgrading from 2.3.x. Line 221 below seems to return 0 but not passing.\r\n```php\r\n$transient_name = 'wc_cbp_' . md5( $customer_email . $user_id . $product_id . WC_Cache_Helper::get_transient_version( 'orders' ) );\r\n\tif ( false === ( $result = get_transient( $transient_name ) ) ) {...}\r\n```\r\nHowever, when I removed the validation it worked. And then put it back it worked.\r\n\r\nIs it possible that the transients need to be updated on init? or something?\r\n"}}