XPressME Integration Kit

Trac

Changeset 145 for trunk/wp-config.php


Ignore:
Timestamp:
Mar 31, 2009, 7:00:25 PM (16 years ago)
Author:
toemon
Message:

抜粋のロジックを、wp-multibyte-patchと同等の処理を行うようにする。 #82
XOOPS,WordPressの表示切替(ユーザ選択)機能 #11
bump Ver0.20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-config.php

    r137 r145  
    8585        require_once(ABSPATH.'wp-settings.php'); 
    8686        wp(); 
    87         ob_start();      
     87        if (is_wordpress_style()) { 
    8888                require_once( ABSPATH . WPINC . '/template-loader.php' ); 
    89                 $wp_output = ob_get_contents(); 
    90         ob_end_clean(); 
    91         require_once( ABSPATH .'/include/xpress_render.php' ); 
    92         xpress_render($wp_output); 
     89        } else { 
     90                ob_start();      
     91                        require_once( ABSPATH . WPINC . '/template-loader.php' ); 
     92                        $wp_output = ob_get_contents(); 
     93                ob_end_clean(); 
     94                require_once( ABSPATH .'/include/xpress_render.php' ); 
     95                xpress_render($wp_output); 
     96        } 
     97                 
    9398         
    9499        //When there is no block cache, and an optional block is different, cache is refreshed.  
Note: See TracChangeset for help on using the changeset viewer.