]+?>\s+/', '', $buffer); return preg_replace('/\n/', '', $temp); } else { return $buffer; } } function roots_buffer_start() { ob_start('roots_callback'); } function roots_buffer_end() { ob_end_flush(); } add_action('wp_head', 'roots_buffer_start', -999); add_action('wp_footer', 'roots_buffer_end'); ?>