- Timestamp:
- Jun 16, 2016, 11:56:31 AM (8 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r792 r862 32 32 { 33 33 global $current_user; 34 get_currentuserinfo();34 xpress_get_current_user(); 35 35 if (xpress_user_access_level() > 3) 36 36 return true; -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php
r856 r862 17 17 if ( !function_exists('get_currentuserinfo') ) : 18 18 function get_currentuserinfo() { 19 global $current_user; 20 global $xoopsModule,$xoopsUser,$xoopsUserIsAdmin; 21 xpress_get_current_user(); 22 } 23 endif; 24 25 if ( !function_exists('wp_get_current_user') ) : 26 function wp_get_current_user() { 27 global $current_user; 28 global $xoopsModule,$xoopsUser,$xoopsUserIsAdmin; 29 xpress_get_current_user(); 30 return $current_user; 31 } 32 endif; 33 34 35 if ( !function_exists('xpress_get_current_user') ) : 36 function xpress_get_current_user() { 19 37 global $current_user; 20 38 global $xoopsModule,$xoopsUser,$xoopsUserIsAdmin; … … 72 90 } 73 91 } 74 wp_set_current_user($user); 92 $user_id = apply_filters( 'determine_current_user', false ); 93 if ( ! $user_id ) { 94 wp_set_current_user( 0 ); 95 return false; 96 } 97 98 wp_set_current_user( $user_id ); 99 100 // wp_set_current_user($user); 75 101 } else { // for WP2.0 76 102 if ( empty($_COOKIE[USER_COOKIE]) || empty($_COOKIE[PASS_COOKIE]) ||
Note: See TracChangeset
for help on using the changeset viewer.