|
@@ 882-884 (lines=3) @@
|
| 879 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . $validation_error->get_error_message() ); |
| 880 |
|
} |
| 881 |
|
|
| 882 |
|
if ( empty( $username ) ) { |
| 883 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Username is required.', 'woocommerce' ) ); |
| 884 |
|
} |
| 885 |
|
|
| 886 |
|
if ( empty( $_POST['password'] ) ) { |
| 887 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Password is required.', 'woocommerce' ) ); |
|
@@ 886-888 (lines=3) @@
|
| 883 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Username is required.', 'woocommerce' ) ); |
| 884 |
|
} |
| 885 |
|
|
| 886 |
|
if ( empty( $_POST['password'] ) ) { |
| 887 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Password is required.', 'woocommerce' ) ); |
| 888 |
|
} |
| 889 |
|
|
| 890 |
|
if ( is_email( $username ) && apply_filters( 'woocommerce_get_username_from_email', true ) ) { |
| 891 |
|
$user = get_user_by( 'email', $username ); |