XPressME Integration Kit

Trac

Changeset 284


Ignore:
Timestamp:
Jun 16, 2009, 2:20:56 PM (15 years ago)
Author:
toemon
Message:

WP2011の投稿者ブロックのブロックオプションが無効になるバグ修正 fixes #156

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/authors_block_theme.php

    r161 r284  
    44        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    55        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[1] ); 
    6         $optioncount = empty( $options[2] ) ? false : true ; 
    7         $exclude_admin = empty( $options[3] ) ? false : true ; 
    8         $show_fullname = empty( $options[4] ) ? false : true ; 
    9         $hide_empty = empty( $options[5] ) ? false : true ;              
     6        $optioncount = empty( $options[2] ) ? 0 : 1 ; 
     7        $exclude_admin = empty( $options[3] ) ? 0 : 1 ; 
     8        $show_fullname = empty( $options[4] ) ? 0 : 1 ; 
     9        $hide_empty = empty( $options[5] ) ? 0 : 1 ;             
    1010        $mydirpath = get_xpress_dir_path(); 
    1111         
     
    1919                'feed_image' => '' 
    2020        ); 
     21        $param_str = 'optioncount='. $optioncount . '&exclude_admin=' . $exclude_admin .'&format=' . $format . '&show_fullname='. $show_fullname . '&hide_empty=' . $hide_empty; 
    2122        ob_start(); 
    22                 wp_list_authors($param); 
     23//              wp_list_authors($param); 
     24                wp_list_authors($param_str); //WP2011 wp_list_authors() used only parse_str() 
    2325                $list_authors = ob_get_contents() ; 
    2426        ob_end_clean(); 
Note: See TracChangeset for help on using the changeset viewer.