XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 14, 2010, 12:54:49 AM (15 years ago)
Author:
toemon
Message:

投稿後のブロックのキャッシュリフレッシュでエラーが発生するバグ修正 Fixes #304

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php

    r477 r540  
    137137        require_once get_xpress_dir_path() . '/include/xpress_block_render.php';  
    138138 
    139  
    140139        foreach($blocks as $block){  
    141140                $func_file = $block->func_file;  
     141                 
     142                // Avoid the failure of the operation when switch_to_blog() and other plugin code is called on the admin page. 
     143                $excludes = '|global_recent_posts_list_block.php|my_.*_block.php|'; 
     144                if (preg_match('/' . $excludes . '/' , $func_file)) continue; 
     145                 
    142146                $call_theme_function_name = str_replace(".php", "", $func_file);  
    143147                $inc_theme_file_name = str_replace(".php", "", $func_file) . '_theme.php';  
Note: See TracChangeset for help on using the changeset viewer.