XPressME Integration Kit

Trac


Ignore:
Timestamp:
Aug 17, 2012, 9:10:26 AM (12 years ago)
Author:
toemon
Message:

Ver2.4.6にてゲストアクセス時、IEで表示できないバグ修正 Fixed #418
Thx shinjou & heiji
http://forum.xpressme.info/topic.php?id=176

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php

    r813 r823  
    5555                } else {                                                        // For the xoops guest 
    5656                        wp_set_current_user(0); 
    57                         if ( ! empty($current_user) ){  // When a current user of wordpress is set, a current user is cleared.  
    58                                 wp_logout(); 
    59                                 wp_clear_auth_cookie(); 
     57                        if ( !preg_match("/MSIE/", $_SERVER['HTTP_USER_AGENT']) &&  
     58                                !preg_match("/msie/", $_SERVER['HTTP_USER_AGENT']))  
     59                        { 
     60                                wp_logout();    // When IE is used, it becomes page error by the guest if the wp_logout() is executed here.  
    6061                        } 
    6162                        return false; 
Note: See TracChangeset for help on using the changeset viewer.