{"action":"created","issue":{"url":"https://api.github.com/repos/akvo/akvo-provisioning/issues/242","labels_url":"https://api.github.com/repos/akvo/akvo-provisioning/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/akvo/akvo-provisioning/issues/242/comments","events_url":"https://api.github.com/repos/akvo/akvo-provisioning/issues/242/events","html_url":"https://github.com/akvo/akvo-provisioning/issues/242","id":125396457,"number":242,"title":"Wordpress security update 4.4.1","user":{"login":"Lynngre","id":2675262,"avatar_url":"https://avatars.githubusercontent.com/u/2675262?v=3","gravatar_id":"","url":"https://api.github.com/users/Lynngre","html_url":"https://github.com/Lynngre","followers_url":"https://api.github.com/users/Lynngre/followers","following_url":"https://api.github.com/users/Lynngre/following{/other_user}","gists_url":"https://api.github.com/users/Lynngre/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynngre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynngre/subscriptions","organizations_url":"https://api.github.com/users/Lynngre/orgs","repos_url":"https://api.github.com/users/Lynngre/repos","events_url":"https://api.github.com/users/Lynngre/events{/privacy}","received_events_url":"https://api.github.com/users/Lynngre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Lynngre","id":2675262,"avatar_url":"https://avatars.githubusercontent.com/u/2675262?v=3","gravatar_id":"","url":"https://api.github.com/users/Lynngre","html_url":"https://github.com/Lynngre","followers_url":"https://api.github.com/users/Lynngre/followers","following_url":"https://api.github.com/users/Lynngre/following{/other_user}","gists_url":"https://api.github.com/users/Lynngre/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynngre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynngre/subscriptions","organizations_url":"https://api.github.com/users/Lynngre/orgs","repos_url":"https://api.github.com/users/Lynngre/repos","events_url":"https://api.github.com/users/Lynngre/events{/privacy}","received_events_url":"https://api.github.com/users/Lynngre/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-01-07T13:45:01Z","updated_at":"2016-02-02T13:35:25Z","closed_at":null,"body":"https://wordpress.org/news/2016/01/wordpress-4-4-1-security-and-maintenance-release/\r\n\r\n- [x] Akvodev.org\r\n- [x] Akvo.org\r\n- [x] Peak\r\n- [x] AkvoSites Test\r\n- [ ] AkvoSites new\r\n- [ ] AkvoSites old"},"comment":{"url":"https://api.github.com/repos/akvo/akvo-provisioning/issues/comments/178576251","html_url":"https://github.com/akvo/akvo-provisioning/issues/242#issuecomment-178576251","issue_url":"https://api.github.com/repos/akvo/akvo-provisioning/issues/242","id":178576251,"user":{"login":"Lynngre","id":2675262,"avatar_url":"https://avatars.githubusercontent.com/u/2675262?v=3","gravatar_id":"","url":"https://api.github.com/users/Lynngre","html_url":"https://github.com/Lynngre","followers_url":"https://api.github.com/users/Lynngre/followers","following_url":"https://api.github.com/users/Lynngre/following{/other_user}","gists_url":"https://api.github.com/users/Lynngre/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynngre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynngre/subscriptions","organizations_url":"https://api.github.com/users/Lynngre/orgs","repos_url":"https://api.github.com/users/Lynngre/repos","events_url":"https://api.github.com/users/Lynngre/events{/privacy}","received_events_url":"https://api.github.com/users/Lynngre/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T13:35:25Z","updated_at":"2016-02-02T13:35:25Z","body":"Wordpress 4.4.+ has changed how it deals with responsive images.  Note for future SSL rollout on WP sites.\r\n\r\nA responsive attribute srcset ignores ssl/https urls & sets image urls to http.  These images cannot be loaded .\r\n\r\nTemporary fix (no WP fix as yet) for functions.php of theme:\r\n\r\n/*\r\n * Force URLs in srcset attributes into HTTPS scheme.\r\n * This is particularly useful when you're running a Flexible SSL frontend like Cloudflare\r\n */\r\nfunction ssl_srcset( $sources ) {\r\n  foreach ( $sources as &$source ) {\r\n    $source['url'] = set_url_scheme( $source['url'], 'https' );\r\n  }\r\n\r\n  return $sources;\r\n}\r\nadd_filter( 'wp_calculate_image_srcset', 'ssl_srcset' );\r\n\r\nNotes:\r\nhttps://tech.enekochan.com/en/2016/01/15/use-https-protocol-in-wordpress-44-for-srcset-attribute/\r\n\r\nhttps://core.trac.wordpress.org/ticket/25449\r\n\r\n\r\n"}}