diff --git a/inc/cleanup.php b/inc/cleanup.php index e4a0ded..2bf1cee 100644 --- a/inc/cleanup.php +++ b/inc/cleanup.php @@ -708,3 +708,16 @@ function roots_widget_first_last_classes($params) { } add_filter('dynamic_sidebar_params', 'roots_widget_first_last_classes'); + +/** + * Wrap embedded media as suggested by Readability + * + * @link https://gist.github.com/965956 + * @link http://www.readability.com/publishers/guidelines#publisher + */ +function roots_embed_wrap($cache, $url, $attr = '', $post_ID = '') { + return '