Changeset 813 for branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php
- Timestamp:
- Aug 9, 2012, 7:18:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php
r805 r813 54 54 return xpress_login(); 55 55 } else { // For the xoops guest 56 wp_set_current_user(0); 56 57 if ( ! empty($current_user) ){ // When a current user of wordpress is set, a current user is cleared. 57 wp_set_current_user(0);58 58 wp_logout(); 59 59 wp_clear_auth_cookie(); … … 317 317 endif; 318 318 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 331 319 // *********************************** End Of Pluggable Function Edit (wp-include/pluggable.php) ************************************ 332 320
Note: See TracChangeset
for help on using the changeset viewer.