XPressME Integration Kit

Trac


Ignore:
Timestamp:
Nov 9, 2012, 8:40:15 AM (12 years ago)
Author:
toemon
Message:

Fatal error: Call to a member function exists() on a non-object in */wp-includes/pluggable.php on line 729

fixed #420

File:
1 edited

Legend:

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

    r823 r830  
    318318endif; 
    319319 
     320if ( !function_exists('is_user_logged_in') ) : 
     321/** 
     322 * Checks if the current visitor is a logged in user. 
     323 * 
     324 * @since 2.0.0 
     325 * 
     326 * @return bool True if user is logged in, false if not logged in. 
     327 */ 
     328function is_user_logged_in() { 
     329        $user = wp_get_current_user(); 
     330        if (method_exists($user, 'exists')) { 
     331                if ( ! $user->exists() ) return false; 
     332        } else { 
     333                if ( empty( $user->ID ) ) return false; 
     334        } 
     335        return true; 
     336} 
     337endif; 
     338 
     339 
    320340// ***********************************  End Of Pluggable Function Edit (wp-include/pluggable.php) ************************************ 
    321341 
Note: See TracChangeset for help on using the changeset viewer.