Changeset 252 for trunk/xpressme_integration_kit/wp-config.php
- Timestamp:
- Jun 4, 2009, 2:02:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-config.php
r232 r252 111 111 } 112 112 113 ob_start(); 114 if($xoops_config->is_wp20 ) 115 require_once dirname( __FILE__ ).'/include/old_template-loader.php' ; 116 else 117 require_once( ABSPATH . WPINC . '/template-loader.php' ); 118 $wp_output = ob_get_contents(); 119 ob_end_clean(); 113 120 // It judges it here because it does in is_index_page() through feed to which the permalink is set. 114 121 if (is_wordpress_style() || is_feed()) { 115 require_once( ABSPATH . WPINC . '/template-loader.php' );122 echo $wp_output; 116 123 } else { 117 ob_start();118 require_once( ABSPATH . WPINC . '/template-loader.php' );119 $wp_output = ob_get_contents();120 ob_end_clean();121 124 require_once( ABSPATH .'/include/xpress_render.php' ); 122 125 xpress_render($wp_output); 123 126 } 124 125 127 126 128 //When there is no block cache, and an optional block is different, cache is refreshed. 127 129 //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.
Note: See TracChangeset
for help on using the changeset viewer.