XPressME Integration Kit

Trac

Changeset 805


Ignore:
Timestamp:
Jun 16, 2012, 4:22:53 PM (13 years ago)
Author:
toemon
Message:

Wordpress3.4にてゲストアクセス時に
Fatal error: Call to a member function exists() on a non-object in /wp-includes/pluggable.php on line 729
が発生するバグ修正

fixed #412

File:
1 edited

Legend:

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

    r348 r805  
    317317endif; 
    318318 
    319  
    320  
    321  
    322  
     319if ( !function_exists('is_user_logged_in') ) : 
     320function 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} 
     329endif; 
    323330 
    324331// ***********************************  End Of Pluggable Function Edit (wp-include/pluggable.php) ************************************ 
Note: See TracChangeset for help on using the changeset viewer.