{"action":"closed","issue":{"url":"https://api.github.com/repos/devinsays/customizer-library/issues/32","labels_url":"https://api.github.com/repos/devinsays/customizer-library/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/devinsays/customizer-library/issues/32/comments","events_url":"https://api.github.com/repos/devinsays/customizer-library/issues/32/events","html_url":"https://github.com/devinsays/customizer-library/issues/32","id":81832381,"number":32,"title":"Problem when saving choices control","user":{"login":"satrya","id":891643,"avatar_url":"https://avatars.githubusercontent.com/u/891643?v=3","gravatar_id":"","url":"https://api.github.com/users/satrya","html_url":"https://github.com/satrya","followers_url":"https://api.github.com/users/satrya/followers","following_url":"https://api.github.com/users/satrya/following{/other_user}","gists_url":"https://api.github.com/users/satrya/gists{/gist_id}","starred_url":"https://api.github.com/users/satrya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satrya/subscriptions","organizations_url":"https://api.github.com/users/satrya/orgs","repos_url":"https://api.github.com/users/satrya/repos","events_url":"https://api.github.com/users/satrya/events{/privacy}","received_events_url":"https://api.github.com/users/satrya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-28T08:49:09Z","updated_at":"2015-06-08T10:22:43Z","closed_at":"2015-06-08T10:22:43Z","body":"Hi Devin,\r\nI've strange experience with the choices control(select, radio), when saving it, it didn't worked\r\n\r\n![choices control](https://dl.dropboxusercontent.com/u/4357218/customizer.gif)\r\n\r\nHere's my code\r\n```\r\n// Radio Button\r\n$section = $prefix . 'radio';\r\n\r\n$sections[] = array(\r\n\t'id'          => $section,\r\n\t'title'       => __( 'Radio Section', 'standard' ),\r\n\t'priority'    => 45,\r\n\t'panel'       => $test_panel,\r\n);\r\n$options['test-radio'] = array(\r\n\t'id'           => $prefix . 'test_radio',\r\n\t'label'        => __( 'This is title', 'standard' ),\r\n\t'description'  => __( 'This is description', 'standard' ),\r\n\t'section'      => $section,\r\n\t'type'         => 'radio',\r\n\t'default'      => 'options2',\r\n\t'choices'      => array(\r\n\t\t'options1' => 'Option 1',\r\n\t\t'options2' => 'Option 2',\r\n\t\t'options3' => 'Option 3'\r\n\t)\r\n);\r\n```\r\n\r\nI tried to check the sanitization code `customizer_library_sanitize_choices` and tried to remove whole code except `return $value;` and the issue disappear(saving works). Do you know what is wrong?\r\n\r\nThank you."}}