Skip to content

Commit

Permalink
add do_shortcode call to process shortcodes before broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
jondavidjohn committed Nov 17, 2012
1 parent 798df4a commit f9e62c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/social/service.php
Expand Up @@ -409,7 +409,8 @@ public function format_content($post, $format) {
$content = htmlspecialchars_decode($post->post_title);
break;
case '{content}':
$content = htmlspecialchars_decode(strip_tags($post->post_content));
$content = do_shortcode($post->post_content);
$content = htmlspecialchars_decode(strip_tags($content));
$content = str_replace(array("\n", "\r", PHP_EOL, ' '), ' ', $content);
$content = preg_replace('/\s+/', ' ', $content);
break;
Expand Down

0 comments on commit f9e62c8

Please sign in to comment.