Automattic/Ad-Code-Manager — pull request #79 by rinatkhaziev (2013-06-18 03:14:05+00:00)
Title: Shortcodes should return not echo

Shortcodes should return and not echo. acm-tag shortcode callback is just a wrapper for action_acm_tag, which did echo.

Added a second arg for action_acm_tag $echo - defaults to true. If echo is true, the function prints ad code, otherwise it returns it. Shortcode is now also returning value.