Skip to content
Browse files

Including Registration.php not required

Including registration.php not required  in versions since 3.1
Generates errors
  • Loading branch information...
1 parent 9900872 commit fa1d51dfa5686c91d6557cd0ff0e268fd137f989 @1bigidea committed Mar 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 wpsc-includes/misc.functions.php
View
2 wpsc-includes/misc.functions.php
@@ -57,7 +57,7 @@ function wpsc_country_has_state($country_code){
* @return int The new user's ID.
*/
function wpsc_add_new_user( $user_login, $user_pass, $user_email ) {
- require_once(ABSPATH . WPINC . '/registration.php');
+
$errors = new WP_Error();
$user_login = sanitize_user( $user_login );
$user_email = apply_filters( 'user_registration_email', $user_email );

0 comments on commit fa1d51d

Please sign in to comment.
Something went wrong with that request. Please try again.