XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 6, 2009, 12:33:22 AM (15 years ago)
Author:
toemon
Message:

#90 マルチループを使っているブロックがマルチユーザに対応していない に対する修正

File:
1 edited

Legend:

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

    r155 r157  
    77                $user_info = get_userdata($uid); 
    88                $output = $user_info->display_name; 
     9        } 
     10        if (empty($show)) 
     11                return $output; 
     12        else 
     13                echo $output; 
     14                 
     15} 
     16function xpress_selected_author_id($show=true ) { 
     17        $output = ''; 
     18        $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     19        if (!empty($_COOKIE[$author_cookie])){ 
     20                $output = intval($_COOKIE[$author_cookie]); 
     21        } else { 
     22                $output = ''; 
    923        } 
    1024        if (empty($show)) 
Note: See TracChangeset for help on using the changeset viewer.