{"action":"closed","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/7245","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/7245/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/7245/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/7245/events","html_url":"https://github.com/woothemes/woocommerce/issues/7245","id":56033877,"number":7245,"title":"Basket Serialisation","user":{"login":"kieranbarnes","id":1001484,"avatar_url":"https://avatars.githubusercontent.com/u/1001484?v=3","gravatar_id":"","url":"https://api.github.com/users/kieranbarnes","html_url":"https://github.com/kieranbarnes","followers_url":"https://api.github.com/users/kieranbarnes/followers","following_url":"https://api.github.com/users/kieranbarnes/following{/other_user}","gists_url":"https://api.github.com/users/kieranbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/kieranbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kieranbarnes/subscriptions","organizations_url":"https://api.github.com/users/kieranbarnes/orgs","repos_url":"https://api.github.com/users/kieranbarnes/repos","events_url":"https://api.github.com/users/kieranbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/kieranbarnes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/woothemes/woocommerce/labels/Needs%20Dev%20Feedback","name":"Needs Dev Feedback","color":"a46497"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/woothemes/woocommerce/milestones/37","html_url":"https://github.com/woothemes/woocommerce/milestones/2.4%20(name%20undecided)","labels_url":"https://api.github.com/repos/woothemes/woocommerce/milestones/37/labels","id":865016,"number":37,"title":"2.4 (name undecided)","description":"","creator":{"login":"mikejolley","id":90977,"avatar_url":"https://avatars.githubusercontent.com/u/90977?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"open_issues":43,"closed_issues":19,"state":"open","created_at":"2014-11-13T14:35:46Z","updated_at":"2015-03-24T12:56:21Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-30T13:36:25Z","updated_at":"2015-03-24T12:56:21Z","closed_at":"2015-03-24T12:56:21Z","body":"We're running some external validation on basket contents.\r\n(Using `woocommerce_check_cart_items` to check items against an ERP system)\r\n\r\nIn short, it reads the serialised basket contents from  *wp_options.option_value*\r\nMost of the baskets unserialize correctly, eg\r\n\r\n```{s:10:\"product_id\";i:8865;``` (Snippet)\r\n\r\nHowever some baskets store the product_id as a string, however all product_ids are integers\r\n\r\n```{s:10:\"product_id\";s:4:\"8525\"```(Snippet)\r\n\r\nWe're wondering whether this is a Woo, WP or PHP bug within the basket serialization.\r\n"}}