|
@@ 869-871 (lines=3) @@
|
| 866 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . $validation_error->get_error_message() ); |
| 867 |
|
} |
| 868 |
|
|
| 869 |
|
if ( empty( $username ) ) { |
| 870 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Username is required.', 'woocommerce' ) ); |
| 871 |
|
} |
| 872 |
|
|
| 873 |
|
if ( empty( $_POST['password'] ) ) { |
| 874 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Password is required.', 'woocommerce' ) ); |
|
@@ 873-875 (lines=3) @@
|
| 870 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Username is required.', 'woocommerce' ) ); |
| 871 |
|
} |
| 872 |
|
|
| 873 |
|
if ( empty( $_POST['password'] ) ) { |
| 874 |
|
throw new Exception( '<strong>' . __( 'Error', 'woocommerce' ) . ':</strong> ' . __( 'Password is required.', 'woocommerce' ) ); |
| 875 |
|
} |
| 876 |
|
|
| 877 |
|
if ( is_email( $username ) && apply_filters( 'woocommerce_get_username_from_email', true ) ) { |
| 878 |
|
$user = get_user_by( 'email', $username ); |