{"action":"closed","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/10030","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/10030/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/10030/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/10030/events","html_url":"https://github.com/woothemes/woocommerce/issues/10030","id":125497789,"number":10030,"title":"Displaying dropdown categories without count not possible because array is treated as scalar value","user":{"login":"dogrescuer","id":16600724,"avatar_url":"https://avatars.githubusercontent.com/u/16600724?v=3","gravatar_id":"","url":"https://api.github.com/users/dogrescuer","html_url":"https://github.com/dogrescuer","followers_url":"https://api.github.com/users/dogrescuer/followers","following_url":"https://api.github.com/users/dogrescuer/following{/other_user}","gists_url":"https://api.github.com/users/dogrescuer/gists{/gist_id}","starred_url":"https://api.github.com/users/dogrescuer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dogrescuer/subscriptions","organizations_url":"https://api.github.com/users/dogrescuer/orgs","repos_url":"https://api.github.com/users/dogrescuer/repos","events_url":"https://api.github.com/users/dogrescuer/events{/privacy}","received_events_url":"https://api.github.com/users/dogrescuer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-07T22:20:06Z","updated_at":"2016-01-08T10:52:47Z","closed_at":"2016-01-08T10:52:47Z","body":"Widget product categories displaying categories as a dropdown ignores the \"don't show product count\" admin checkbox. This appears to be because \r\n\r\n includes/wc-term-functions.php line 135 \r\n\r\nis an array but is assigned to the local variable as if it were a singular value.\r\n\r\n$args['show_count'] = $args;\r\n\r\n$args['show_count'] is expecting $args to contain a value (0 or 1) but it contains an array. In fact, it's assigning itself to a member of itself, clearly not what the author intended.\r\n\r\nIf this line were eliminated, $args['show_count'] would contain a 0 or 1 as read from the admin settings.\r\n\r\n\r\n"}}