Changeset 794 for branches/Ver2.4/xpressme_integration_kit/include
- Timestamp:
- Nov 2, 2011, 4:05:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.4/xpressme_integration_kit/include/oninstall.php
r617 r794 161 161 $pass_md5 = is_object($GLOBALS["xoopsUser"])?$GLOBALS["xoopsUser"]->getVar("pass"):''; 162 162 163 add_filter('sanitize_user', "sanitize_user_multibyte" ,10,3); 164 163 165 if (!function_exists('username_exists')){ 164 166 require_once($mydirpath . '/wp-includes/registration-functions.php'); … … 296 298 } 297 299 endif; 300 if( ! function_exists( 'sanitize_user_multibyte' ) ) : 301 function sanitize_user_multibyte($username, $raw_username, $strict){ 302 if ($username == "" && $strict){ 303 if ($raw_username == ""){ 304 return $username; 305 } else{ 306 return sanitize_user($raw_username, false); 307 } 308 } else { 309 return $username; 310 } 311 } 312 endif; 298 313 ?>
Note: See TracChangeset
for help on using the changeset viewer.