- Timestamp:
- Nov 9, 2012, 8:40:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php
r823 r830 318 318 endif; 319 319 320 if ( !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 */ 328 function 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 } 337 endif; 338 339 320 340 // *********************************** End Of Pluggable Function Edit (wp-include/pluggable.php) ************************************ 321 341
Note: See TracChangeset
for help on using the changeset viewer.