{"action":"created","issue":{"url":"https://api.github.com/repos/aristath/kirki/issues/1791","repository_url":"https://api.github.com/repos/aristath/kirki","labels_url":"https://api.github.com/repos/aristath/kirki/issues/1791/labels{/name}","comments_url":"https://api.github.com/repos/aristath/kirki/issues/1791/comments","events_url":"https://api.github.com/repos/aristath/kirki/issues/1791/events","html_url":"https://github.com/aristath/kirki/issues/1791","id":294545859,"number":1791,"title":"Google Fonts switch error","user":{"login":"nk-o","id":14810891,"avatar_url":"https://avatars1.githubusercontent.com/u/14810891?v=4","gravatar_id":"","url":"https://api.github.com/users/nk-o","html_url":"https://github.com/nk-o","followers_url":"https://api.github.com/users/nk-o/followers","following_url":"https://api.github.com/users/nk-o/following{/other_user}","gists_url":"https://api.github.com/users/nk-o/gists{/gist_id}","starred_url":"https://api.github.com/users/nk-o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nk-o/subscriptions","organizations_url":"https://api.github.com/users/nk-o/orgs","repos_url":"https://api.github.com/users/nk-o/repos","events_url":"https://api.github.com/users/nk-o/events{/privacy}","received_events_url":"https://api.github.com/users/nk-o/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-05T21:19:44Z","updated_at":"2018-02-06T19:27:24Z","closed_at":"2018-02-06T19:25:34Z","author_association":"NONE","body":"### Issue description:\r\n1. Select google font and set Variant. For example Open Sans + Regular\r\n![image](https://user-images.githubusercontent.com/14810891/35828891-34306ed4-0ad2-11e8-803d-7b1239a34119.png)\r\n2. Then try to select font, that doesn't have this Variant. For example Open Sans Condensed\r\n![image](https://user-images.githubusercontent.com/14810891/35828957-622a8824-0ad2-11e8-888a-5e2e9e785f0e.png)\r\n3. New font will not be selected and we got error in console\r\n![image](https://user-images.githubusercontent.com/14810891/35828989-7b3ab73a-0ad2-11e8-9cd5-4a8488d33f01.png)\r\n\r\n\r\n\r\n### Version used:\r\n3.0.25\r\n\r\n### Using theme_mods or options?\r\ntheme_mods\r\n\r\n### Code to reproduce the issue (config + field(s))\r\n```\r\nKirki::add_field(array(\r\n    'type' => 'typography',\r\n    'settings' => 'typography_main_body',\r\n    'label' => esc_attr__('Body'),\r\n    'section' => 'typography',\r\n    'default' => array(\r\n        'font-family' => 'Work Sans',\r\n        'line-height' => '1.65',\r\n        'letter-spacing' => '0.004em'\r\n    ),\r\n    'priority' => 10,\r\n    'output' => array(\r\n        array(\r\n            'element' => 'body',\r\n        ),\r\n    ),\r\n    'transport' => 'auto'\r\n));\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aristath/kirki/issues/comments/363536850","html_url":"https://github.com/aristath/kirki/issues/1791#issuecomment-363536850","issue_url":"https://api.github.com/repos/aristath/kirki/issues/1791","id":363536850,"user":{"login":"aristath","id":588688,"avatar_url":"https://avatars0.githubusercontent.com/u/588688?v=4","gravatar_id":"","url":"https://api.github.com/users/aristath","html_url":"https://github.com/aristath","followers_url":"https://api.github.com/users/aristath/followers","following_url":"https://api.github.com/users/aristath/following{/other_user}","gists_url":"https://api.github.com/users/aristath/gists{/gist_id}","starred_url":"https://api.github.com/users/aristath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aristath/subscriptions","organizations_url":"https://api.github.com/users/aristath/orgs","repos_url":"https://api.github.com/users/aristath/repos","events_url":"https://api.github.com/users/aristath/events{/privacy}","received_events_url":"https://api.github.com/users/aristath/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T19:27:24Z","updated_at":"2018-02-06T19:27:24Z","author_association":"OWNER","body":"Thank you for reporting this, it just got fixed in the develop branch.\r\nThis was a weird one because it only happened on fonts that didn't have a \"regular\" variant.\r\nFor example if you were using Roboto-100 and then switched to Merriweather it was working fine. Just one of those weird things...\r\nFixed in the develop branch, will be included in 3.0.26"}}
{"actor":{"display_login":"aristath"}}