XPressME Integration Kit

Trac


Ignore:
Timestamp:
Aug 9, 2012, 7:18:48 PM (12 years ago)
Author:
toemon
Message:

Fatal error: Call to a member function exists() on a non-object bug fixes #417

File:
1 edited

Legend:

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

    r805 r813  
    5454                        return xpress_login();   
    5555                } else {                                                        // For the xoops guest 
     56                        wp_set_current_user(0); 
    5657                        if ( ! empty($current_user) ){  // When a current user of wordpress is set, a current user is cleared.  
    57                                 wp_set_current_user(0); 
    5858                                wp_logout(); 
    5959                                wp_clear_auth_cookie(); 
     
    317317endif; 
    318318 
    319 if ( !function_exists('is_user_logged_in') ) : 
    320 function is_user_logged_in() { 
    321         $user = wp_get_current_user(); 
    322         if (method_exists($user, 'exists')) { 
    323                 if ( ! $user->exists() ) return false; 
    324         } else { 
    325                 if ( empty( $user->ID ) ) return false; 
    326         } 
    327         return true; 
    328 } 
    329 endif; 
    330  
    331319// ***********************************  End Of Pluggable Function Edit (wp-include/pluggable.php) ************************************ 
    332320 
Note: See TracChangeset for help on using the changeset viewer.