Index: trunk/xpressme_integration_kit/include/add_xpress_process.php
===================================================================
--- trunk/xpressme_integration_kit/include/add_xpress_process.php	(revision 654)
+++ trunk/xpressme_integration_kit/include/add_xpress_process.php	(revision 655)
@@ -7,9 +7,9 @@
 }
 
-function comment_quicktags_plus_patch(){
-	$active_plugins = get_option('active_plugins');
-	foreach($active_plugins as $active_plugin){
-		if(preg_match('/comment_quicktags_plus\.php/',$active_plugin)) ob_end_flush();
-	}
+function ob_end_flush_child($now_ob_level){
+	// The flash does the output buffer of WP before doing rendering. 
+	// Example: comment_quicktags plugin does not flash buffer specifically.
+	while(ob_get_level() > $now_ob_level) ob_end_flush();
+	$ob_level = ob_get_level();
 }
 function safe_site_url(){
@@ -158,10 +158,11 @@
 	
 	Notification_reserve_send();
-	ob_start();	
+	ob_start();
+		$now_ob_level = ob_get_level();
 		if (version_compare($xoops_config->wp_version,'2.2', '<'))
 			require_once dirname( __FILE__ ).'/old_template-loader.php' ;
 		else
 			require_once( ABSPATH . WPINC . '/template-loader.php' );
-		comment_quicktags_plus_patch();
+		ob_end_flush_child($now_ob_level);
 		$wp_output = ob_get_contents();
 	ob_end_clean();
Index: trunk/xpressme_integration_kit/include/xpress_block_header.php
===================================================================
--- trunk/xpressme_integration_kit/include/xpress_block_header.php	(revision 654)
+++ trunk/xpressme_integration_kit/include/xpress_block_header.php	(revision 655)
@@ -64,6 +64,7 @@
 
 		ob_start();	
+			$now_ob_level = ob_get_level();		
 			wp_head();
-			comment_quicktags_plus_patch();
+			ob_end_flush_child($now_ob_level);
 			$header_str = ob_get_contents();
 		ob_end_clean();
