{"action":"created","issue":{"url":"https://api.github.com/repos/timber/timber/issues/1651","repository_url":"https://api.github.com/repos/timber/timber","labels_url":"https://api.github.com/repos/timber/timber/issues/1651/labels{/name}","comments_url":"https://api.github.com/repos/timber/timber/issues/1651/comments","events_url":"https://api.github.com/repos/timber/timber/issues/1651/events","html_url":"https://github.com/timber/timber/issues/1651","id":293919069,"number":1651,"title":"Shortcode execution in post excerpt","user":{"login":"benjaminniess","id":1109647,"avatar_url":"https://avatars2.githubusercontent.com/u/1109647?v=4","gravatar_id":"","url":"https://api.github.com/users/benjaminniess","html_url":"https://github.com/benjaminniess","followers_url":"https://api.github.com/users/benjaminniess/followers","following_url":"https://api.github.com/users/benjaminniess/following{/other_user}","gists_url":"https://api.github.com/users/benjaminniess/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminniess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminniess/subscriptions","organizations_url":"https://api.github.com/users/benjaminniess/orgs","repos_url":"https://api.github.com/users/benjaminniess/repos","events_url":"https://api.github.com/users/benjaminniess/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminniess/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-02T15:09:16Z","updated_at":"2018-02-12T10:01:18Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nIt seems that when we call a post preview with Timber…\r\n\r\n`{{ post.preview.read_more('') }}`\r\n\r\n… shortcodes are parsed, executed and stripped. In WordPress native get_the_excerpt function, shortcodes are stripped with strip_shortcode function (https://codex.wordpress.org/Function_Reference/strip_shortcodes)\r\n\r\nIf we want to respect WordPress excerpt behavior, it would be better to strip them or at least to have a filter to stip them.\r\n\r\nIt seems to be in this file :\r\nhttps://github.com/timber/timber/blob/f1fdbeb73eb897d227fda01b65da685abaeba830/lib/PostPreview.php#L145\r\n\r\nThanks for your help.\r\nBest,"},"comment":{"url":"https://api.github.com/repos/timber/timber/issues/comments/364876419","html_url":"https://github.com/timber/timber/issues/1651#issuecomment-364876419","issue_url":"https://api.github.com/repos/timber/timber/issues/1651","id":364876419,"user":{"login":"benjaminniess","id":1109647,"avatar_url":"https://avatars2.githubusercontent.com/u/1109647?v=4","gravatar_id":"","url":"https://api.github.com/users/benjaminniess","html_url":"https://github.com/benjaminniess","followers_url":"https://api.github.com/users/benjaminniess/followers","following_url":"https://api.github.com/users/benjaminniess/following{/other_user}","gists_url":"https://api.github.com/users/benjaminniess/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminniess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminniess/subscriptions","organizations_url":"https://api.github.com/users/benjaminniess/orgs","repos_url":"https://api.github.com/users/benjaminniess/repos","events_url":"https://api.github.com/users/benjaminniess/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminniess/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T10:01:18Z","updated_at":"2018-02-12T10:01:18Z","author_association":"NONE","body":"@palmiak , I'm ok to manually use filters but I don't understand how I can get the equivalent of the wp get_the_excerpt function that checks post_excerpt and returns the beginning of post_content when empty. Do I have to do it manually?\r\n\r\nThanks"}}
{"actor":{"display_login":"benjaminniess"}}