XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 4, 2009, 2:02:54 PM (15 years ago)
Author:
toemon
Message:

WordPressME2.0.11への対応,(ブロック周りは未完)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-config.php

    r232 r252  
    111111        } 
    112112 
     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(); 
    113120        // It judges it here because it does in is_index_page() through feed to which the permalink is set.  
    114121        if (is_wordpress_style() || is_feed()) { 
    115                 require_once( ABSPATH . WPINC . '/template-loader.php' ); 
     122                echo $wp_output; 
    116123        } else { 
    117                 ob_start();      
    118                         require_once( ABSPATH . WPINC . '/template-loader.php' ); 
    119                         $wp_output = ob_get_contents(); 
    120                 ob_end_clean(); 
    121124                require_once( ABSPATH .'/include/xpress_render.php' ); 
    122125                xpress_render($wp_output); 
    123126        } 
    124                  
    125          
     127 
    126128        //When there is no block cache, and an optional block is different, cache is refreshed.  
    127129        //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.