Changeset 5666
- Timestamp:
- 03/25/2015 07:16:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/users/functions.php
r5665 r5666 1361 1361 // Empty email check 1362 1362 if ( empty( $_POST['email'] ) ) { 1363 bbp_add_error( 'bbp_user_email_empty', __( '<strong>ERROR</strong>: That is not a valid email address.' ), array( 'form-field' => 'email' ) );1363 bbp_add_error( 'bbp_user_email_empty', __( '<strong>ERROR</strong>: That is not a valid email address.', 'bbpress' ), array( 'form-field' => 'email' ) ); 1364 1364 return; 1365 1365 } … … 1373 1373 // Check that new email address is valid 1374 1374 if ( ! is_email( $_POST['email'] ) ) { 1375 bbp_add_error( 'bbp_user_email_invalid', __( '<strong>ERROR</strong>: That is not a valid email address.' ), array( 'form-field' => 'email' ) );1375 bbp_add_error( 'bbp_user_email_invalid', __( '<strong>ERROR</strong>: That is not a valid email address.', 'bbpress' ), array( 'form-field' => 'email' ) ); 1376 1376 return; 1377 1377 } … … 1379 1379 // Check if email address is already in use 1380 1380 if ( email_exists( $_POST['email'] ) ) { 1381 bbp_add_error( 'bbp_user_email_taken', __( '<strong>ERROR</strong>: That email address is already in use.' ), array( 'form-field' => 'email' ) );1381 bbp_add_error( 'bbp_user_email_taken', __( '<strong>ERROR</strong>: That email address is already in use.', 'bbpress' ), array( 'form-field' => 'email' ) ); 1382 1382 return; 1383 1383 } … … 1509 1509 delete_option( $key ); 1510 1510 1511 bbp_add_error( 'bbp_user_email_taken', __( '<strong>ERROR</strong>: That email address is already in use.' ), array( 'form-field' => 'email' ) );1511 bbp_add_error( 'bbp_user_email_taken', __( '<strong>ERROR</strong>: That email address is already in use.', 'bbpress' ), array( 'form-field' => 'email' ) ); 1512 1512 1513 1513 // Email address is good to change to … … 1579 1579 // Bail if any relevant parameters are empty 1580 1580 if ( empty( $user_id ) || empty( $r['hash'] ) || empty( $r['newemail'] ) ) { 1581 bbp_add_error( 'bbp_user_email_invalid_hash', __( '<strong>ERROR</strong>: An error occurred while updating your email address.' ), array( 'form-field' => 'email' ) );1581 bbp_add_error( 'bbp_user_email_invalid_hash', __( '<strong>ERROR</strong>: An error occurred while updating your email address.', 'bbpress' ), array( 'form-field' => 'email' ) ); 1582 1582 return; 1583 1583 } … … 1604 1604 Regards, 1605 1605 The %4$s Team 1606 %5$s' );1606 %5$s', 'bbpress' ); 1607 1607 1608 1608 /** … … 1626 1626 1627 1627 // Build the email subject 1628 $subject = sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) );1628 $subject = sprintf( __( '[%s] New Email Address', 'bbpress' ), wp_specialchars_decode( get_option( 'blogname' ) ) ); 1629 1629 1630 1630 // Send the email
Note: See TracChangeset
for help on using the changeset viewer.