{"action":"created","issue":{"url":"https://api.github.com/repos/roots/sage/issues/1376","labels_url":"https://api.github.com/repos/roots/sage/issues/1376/labels{/name}","comments_url":"https://api.github.com/repos/roots/sage/issues/1376/comments","events_url":"https://api.github.com/repos/roots/sage/issues/1376/events","html_url":"https://github.com/roots/sage/issues/1376","id":60496221,"number":1376,"title":"Sage\\ConditionalTagCheck not iterating over arg arrays","user":{"login":"saulfautley","id":2036475,"avatar_url":"https://avatars.githubusercontent.com/u/2036475?v=3","gravatar_id":"","url":"https://api.github.com/users/saulfautley","html_url":"https://github.com/saulfautley","followers_url":"https://api.github.com/users/saulfautley/followers","following_url":"https://api.github.com/users/saulfautley/following{/other_user}","gists_url":"https://api.github.com/users/saulfautley/gists{/gist_id}","starred_url":"https://api.github.com/users/saulfautley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saulfautley/subscriptions","organizations_url":"https://api.github.com/users/saulfautley/orgs","repos_url":"https://api.github.com/users/saulfautley/repos","events_url":"https://api.github.com/users/saulfautley/events{/privacy}","received_events_url":"https://api.github.com/users/saulfautley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-10T13:06:46Z","updated_at":"2015-03-10T15:40:23Z","closed_at":"2015-03-10T14:00:38Z","body":"In `\\Roots\\Sage\\Config\\display_sidebars()` for example, if you specify the following:\r\n\r\n```php\r\n$conditionalCheck = new Sage\\ConditionalTagCheck([\r\n    ['is_page_template', ['template-custom1.php', 'template-custom2.php']],\r\n]);\r\n```\r\n\r\nThe arg array is simply being passed to the conditional tag function like this:\r\n\r\n```php\r\nis_page_template(['template-custom1.php', 'template-custom2.php']);\r\n```\r\n\r\nBut since `is_page_template()` (and possibly others) only accepts a string, it should be calling it like this:\r\n\r\n```php\r\nis_page_template('template-custom1.php');\r\nis_page_template('template-custom2.php');\r\n```"},"comment":{"url":"https://api.github.com/repos/roots/sage/issues/comments/78080451","html_url":"https://github.com/roots/sage/issues/1376#issuecomment-78080451","issue_url":"https://api.github.com/repos/roots/sage/issues/1376","id":78080451,"user":{"login":"saulfautley","id":2036475,"avatar_url":"https://avatars.githubusercontent.com/u/2036475?v=3","gravatar_id":"","url":"https://api.github.com/users/saulfautley","html_url":"https://github.com/saulfautley","followers_url":"https://api.github.com/users/saulfautley/followers","following_url":"https://api.github.com/users/saulfautley/following{/other_user}","gists_url":"https://api.github.com/users/saulfautley/gists{/gist_id}","starred_url":"https://api.github.com/users/saulfautley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saulfautley/subscriptions","organizations_url":"https://api.github.com/users/saulfautley/orgs","repos_url":"https://api.github.com/users/saulfautley/repos","events_url":"https://api.github.com/users/saulfautley/events{/privacy}","received_events_url":"https://api.github.com/users/saulfautley/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T15:40:23Z","updated_at":"2015-03-10T15:40:23Z","body":"Ok I see now. I was using a version of Sage before `lib/config.php` was updated with the new documentation and examples. Thanks for the clarification."}}