{"action":"created","issue":{"url":"https://api.github.com/repos/timber/timber/issues/1589","repository_url":"https://api.github.com/repos/timber/timber","labels_url":"https://api.github.com/repos/timber/timber/issues/1589/labels{/name}","comments_url":"https://api.github.com/repos/timber/timber/issues/1589/comments","events_url":"https://api.github.com/repos/timber/timber/issues/1589/events","html_url":"https://github.com/timber/timber/issues/1589","id":269786531,"number":1589,"title":"fn(is_admin_bar_showing) returns error ","user":{"login":"michaelmano","id":8263631,"avatar_url":"https://avatars2.githubusercontent.com/u/8263631?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelmano","html_url":"https://github.com/michaelmano","followers_url":"https://api.github.com/users/michaelmano/followers","following_url":"https://api.github.com/users/michaelmano/following{/other_user}","gists_url":"https://api.github.com/users/michaelmano/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelmano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelmano/subscriptions","organizations_url":"https://api.github.com/users/michaelmano/orgs","repos_url":"https://api.github.com/users/michaelmano/repos","events_url":"https://api.github.com/users/michaelmano/events{/privacy}","received_events_url":"https://api.github.com/users/michaelmano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-30T23:26:40Z","updated_at":"2017-10-31T00:14:01Z","closed_at":null,"author_association":"NONE","body":"### Expected behavior\r\nexpected truthy falsy.\r\n\r\n### Actual behavior\r\n```\r\nWarning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /wp-content/plugins/timber-library/lib/Twig.php on line 310\r\n```\r\n### Steps to reproduce behavior\r\n```\r\n{{ fn(is_admin_bar_showing) }}\r\n```\r\nor if you do an if statement you get nothing.\r\n```\r\n{% if fn(is_admin_bar_showing) %}\r\n\r\n{% endif %}\r\n```\r\n### What version of WordPress, PHP and Timber are you using?\r\nWordpress: Version 4.8.2\r\nTimber: Version 1.5.2\r\nPHP: 7.1.8\r\n\r\n### How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)\r\nComposer/Packagist"},"comment":{"url":"https://api.github.com/repos/timber/timber/issues/comments/340622140","html_url":"https://github.com/timber/timber/issues/1589#issuecomment-340622140","issue_url":"https://api.github.com/repos/timber/timber/issues/1589","id":340622140,"user":{"login":"jarednova","id":1298086,"avatar_url":"https://avatars1.githubusercontent.com/u/1298086?v=4","gravatar_id":"","url":"https://api.github.com/users/jarednova","html_url":"https://github.com/jarednova","followers_url":"https://api.github.com/users/jarednova/followers","following_url":"https://api.github.com/users/jarednova/following{/other_user}","gists_url":"https://api.github.com/users/jarednova/gists{/gist_id}","starred_url":"https://api.github.com/users/jarednova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarednova/subscriptions","organizations_url":"https://api.github.com/users/jarednova/orgs","repos_url":"https://api.github.com/users/jarednova/repos","events_url":"https://api.github.com/users/jarednova/events{/privacy}","received_events_url":"https://api.github.com/users/jarednova/received_events","type":"User","site_admin":false},"created_at":"2017-10-31T00:14:01Z","updated_at":"2017-10-31T00:14:01Z","author_association":"OWNER","body":"so close! just needs to be a string @michaelmano:\r\n\r\n```\r\n{{ fn('is_admin_bar_showing') }}\r\n```"}}
{"actor":{"display_login":"jarednova"}}