From 0f3ea1bf0a667a31b6673be85fe783831db92de2 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Thu, 26 May 2011 22:29:02 -0600 Subject: [PATCH] removing output buffer include --- functions.php | 1 - inc/roots-ob.php | 25 ------------------------- 2 files changed, 26 deletions(-) delete mode 100644 inc/roots-ob.php diff --git a/functions.php b/functions.php index 49ac662..02fb36b 100644 --- a/functions.php +++ b/functions.php @@ -6,7 +6,6 @@ $theme_name = next(explode('/themes/', get_template_directory())); include_once('inc/roots-activation.php'); // activation include_once('inc/roots-admin.php'); // admin additions/mods include_once('inc/roots-options.php'); // theme options menu -include_once('inc/roots-ob.php'); // output buffer include_once('inc/roots-cleanup.php'); // code cleanup/removal include_once('inc/roots-htaccess.php'); // h5bp htaccess include_once('inc/roots-hooks.php'); // hooks diff --git a/inc/roots-ob.php b/inc/roots-ob.php deleted file mode 100644 index 5fe1819..0000000 --- a/inc/roots-ob.php +++ /dev/null @@ -1,25 +0,0 @@ -]+?>\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'); - -?> \ No newline at end of file