{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/amp-wp/issues/1431","repository_url":"https://api.github.com/repos/Automattic/amp-wp","labels_url":"https://api.github.com/repos/Automattic/amp-wp/issues/1431/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/amp-wp/issues/1431/comments","events_url":"https://api.github.com/repos/Automattic/amp-wp/issues/1431/events","html_url":"https://github.com/Automattic/amp-wp/issues/1431","id":360387395,"node_id":"MDU6SXNzdWUzNjAzODczOTU=","number":1431,"title":"amp_post_template_dir using directory inside theme","user":{"login":"anteksiler","id":1000992,"node_id":"MDQ6VXNlcjEwMDA5OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1000992?v=4","gravatar_id":"","url":"https://api.github.com/users/anteksiler","html_url":"https://github.com/anteksiler","followers_url":"https://api.github.com/users/anteksiler/followers","following_url":"https://api.github.com/users/anteksiler/following{/other_user}","gists_url":"https://api.github.com/users/anteksiler/gists{/gist_id}","starred_url":"https://api.github.com/users/anteksiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anteksiler/subscriptions","organizations_url":"https://api.github.com/users/anteksiler/orgs","repos_url":"https://api.github.com/users/anteksiler/repos","events_url":"https://api.github.com/users/anteksiler/events{/privacy}","received_events_url":"https://api.github.com/users/anteksiler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-14T17:16:49Z","updated_at":"2018-09-14T18:00:32Z","closed_at":"2018-09-14T17:32:21Z","author_association":"NONE","body":"When I pass a directory inside the theme folder, I get an error:\r\n`return get_stylesheet_directory_uri() . '/inc/framework/thb-amp/amp';`\r\n\r\nThe error is:\r\n`Notice: AMP_Post_Template::verify_and_include was called incorrectly. Path validation for template (...inc/framework/thb-amp/amp/single.php) failed. Path cannot traverse and must be located in `WP_CONTENT_DIR`. Please see Debugging in WordPress for more information. (This message was added in version 0.1.) in /localhost/wordpress-goodlife/wp-includes/functions.php on line 4161`"},"comment":{"url":"https://api.github.com/repos/Automattic/amp-wp/issues/comments/421437959","html_url":"https://github.com/Automattic/amp-wp/issues/1431#issuecomment-421437959","issue_url":"https://api.github.com/repos/Automattic/amp-wp/issues/1431","id":421437959,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTQzNzk1OQ==","user":{"login":"westonruter","id":134745,"node_id":"MDQ6VXNlcjEzNDc0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/134745?v=4","gravatar_id":"","url":"https://api.github.com/users/westonruter","html_url":"https://github.com/westonruter","followers_url":"https://api.github.com/users/westonruter/followers","following_url":"https://api.github.com/users/westonruter/following{/other_user}","gists_url":"https://api.github.com/users/westonruter/gists{/gist_id}","starred_url":"https://api.github.com/users/westonruter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westonruter/subscriptions","organizations_url":"https://api.github.com/users/westonruter/orgs","repos_url":"https://api.github.com/users/westonruter/repos","events_url":"https://api.github.com/users/westonruter/events{/privacy}","received_events_url":"https://api.github.com/users/westonruter/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T18:00:32Z","updated_at":"2018-09-14T18:00:32Z","author_association":"COLLABORATOR","body":"You should probably use the `amp_post_template_file` filter instead then."}}
{"actor":{"display_login":"westonruter"}}