Changeset 540
- Timestamp:
- Mar 14, 2010, 12:54:49 AM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php
r477 r540 137 137 require_once get_xpress_dir_path() . '/include/xpress_block_render.php'; 138 138 139 140 139 foreach($blocks as $block){ 141 140 $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 142 146 $call_theme_function_name = str_replace(".php", "", $func_file); 143 147 $inc_theme_file_name = str_replace(".php", "", $func_file) . '_theme.php'; -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/blog_list_block_theme.php
r536 r540 3 3 function blog_list_block($options) 4 4 { 5 if(is_admin()) return; // wp-admin page is not exists6 5 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 7 6 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_category.html' : trim( $options[1] ); -
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_recent_posts_list_block_theme.php
r537 r540 3 3 function global_recent_posts_list_block($options) 4 4 { 5 if (is_admin()) return;6 5 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 7 6 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[1] );
Note: See TracChangeset
for help on using the changeset viewer.