{"action":"created","issue":{"url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/81","labels_url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/81/comments","events_url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/81/events","html_url":"https://github.com/inpsyde/multilingual-press/issues/81","id":49900662,"number":81,"title":"mlp_show_linked_elements should never include draft-posts","user":{"login":"tordans","id":111561,"avatar_url":"https://avatars.githubusercontent.com/u/111561?v=3","gravatar_id":"","url":"https://api.github.com/users/tordans","html_url":"https://github.com/tordans","followers_url":"https://api.github.com/users/tordans/followers","following_url":"https://api.github.com/users/tordans/following{/other_user}","gists_url":"https://api.github.com/users/tordans/gists{/gist_id}","starred_url":"https://api.github.com/users/tordans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tordans/subscriptions","organizations_url":"https://api.github.com/users/tordans/orgs","repos_url":"https://api.github.com/users/tordans/repos","events_url":"https://api.github.com/users/tordans/events{/privacy}","received_events_url":"https://api.github.com/users/tordans/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inpsyde/multilingual-press/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/inpsyde/multilingual-press/labels/needs%20testing","name":"needs testing","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"Biont","id":4208996,"avatar_url":"https://avatars.githubusercontent.com/u/4208996?v=3","gravatar_id":"","url":"https://api.github.com/users/Biont","html_url":"https://github.com/Biont","followers_url":"https://api.github.com/users/Biont/followers","following_url":"https://api.github.com/users/Biont/following{/other_user}","gists_url":"https://api.github.com/users/Biont/gists{/gist_id}","starred_url":"https://api.github.com/users/Biont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Biont/subscriptions","organizations_url":"https://api.github.com/users/Biont/orgs","repos_url":"https://api.github.com/users/Biont/repos","events_url":"https://api.github.com/users/Biont/events{/privacy}","received_events_url":"https://api.github.com/users/Biont/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/inpsyde/multilingual-press/milestones/6","html_url":"https://github.com/inpsyde/multilingual-press/milestones/2.2.0","labels_url":"https://api.github.com/repos/inpsyde/multilingual-press/milestones/6/labels","id":1007340,"number":6,"title":"2.2.0","description":null,"creator":{"login":"toscho","id":135009,"avatar_url":"https://avatars.githubusercontent.com/u/135009?v=3","gravatar_id":"","url":"https://api.github.com/users/toscho","html_url":"https://github.com/toscho","followers_url":"https://api.github.com/users/toscho/followers","following_url":"https://api.github.com/users/toscho/following{/other_user}","gists_url":"https://api.github.com/users/toscho/gists{/gist_id}","starred_url":"https://api.github.com/users/toscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toscho/subscriptions","organizations_url":"https://api.github.com/users/toscho/orgs","repos_url":"https://api.github.com/users/toscho/repos","events_url":"https://api.github.com/users/toscho/events{/privacy}","received_events_url":"https://api.github.com/users/toscho/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":16,"state":"open","created_at":"2015-03-05T11:13:56Z","updated_at":"2015-06-22T10:42:50Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-11-24T15:20:55Z","updated_at":"2015-06-22T10:42:50Z","closed_at":"2015-06-22T10:42:50Z","body":"mlp_show_linked_elements should never return urls to draft posts, only public posts.\r\nThis is not the case ATM.\r\n\r\nexample:\r\n```php\r\n  $show_linked_elements_config = array (\r\n    'link_text'         => 'text',\r\n    'show_current_blog' => FALSE,\r\n    'echo'              => FALSE,\r\n    'sort'              => 'priority',\r\n    'strict'            => FALSE\r\n  );\r\n  var_dump(mlp_show_linked_elements($show_linked_elements_config));\r\n```\r\nresult – taken from a private browsing windows; so I was not logged in:\r\n```html\r\nstring(213) \"<div class=\"mlp_language_box\"><ul><li><a rel=\"alternate\" hreflang=\"en-US\"  href=\"https://www.asdf.org/c/help/?p=1092\">English</a></li><li><a class=\"current-language-item\" href=\"\">Deutsch</a></li></ul></div>\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/comments/114062977","html_url":"https://github.com/inpsyde/multilingual-press/issues/81#issuecomment-114062977","issue_url":"https://api.github.com/repos/inpsyde/multilingual-press/issues/81","id":114062977,"user":{"login":"tfrommen","id":6049306,"avatar_url":"https://avatars.githubusercontent.com/u/6049306?v=3","gravatar_id":"","url":"https://api.github.com/users/tfrommen","html_url":"https://github.com/tfrommen","followers_url":"https://api.github.com/users/tfrommen/followers","following_url":"https://api.github.com/users/tfrommen/following{/other_user}","gists_url":"https://api.github.com/users/tfrommen/gists{/gist_id}","starred_url":"https://api.github.com/users/tfrommen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfrommen/subscriptions","organizations_url":"https://api.github.com/users/tfrommen/orgs","repos_url":"https://api.github.com/users/tfrommen/repos","events_url":"https://api.github.com/users/tfrommen/events{/privacy}","received_events_url":"https://api.github.com/users/tfrommen/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T10:42:50Z","updated_at":"2015-06-22T10:42:50Z","body":"Fixed in PRO repository already. Tested, works, closed."}}