-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue/1715 #1885
Issue/1715 #1885
Conversation
Release/2.0
Release/2.0
includes/admin/admin-actions.php
Outdated
$errors->add( 'empty_first_name', '<strong>ERROR:</strong>' . __( 'Please enter your first name.', 'give' ) ); | ||
$errors->add( | ||
'empty_first_name', | ||
sprintf( '%1$s %2$s', esc_html__( '<strong>ERROR:</strong>', 'give' ), __( 'Please enter your first name.', 'give' ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mehul0810 please separate HTML and translatable strings
sprintf(
'<strong>%1$s:</strong> %2$s',
__( 'ERROR', 'give' ),
__( 'Please enter your first name.', 'give' )
);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ravinderk Improved Code
# Conflicts: # assets/css/give-admin-rtl.min.css # assets/css/give-admin.min.css # assets/sourcemaps/give-admin.css.map
includes/user-functions.php
Outdated
|
||
} | ||
|
||
add_action( 'user_register', 'give_add_past_donations_to_new_user' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mehul0810 Remove this code because payments now connect with donor, so if user change or update it will not going to affect anything
@mehul0810 |
@ravinderk I have updated the validation so that it won't affect it any more and also checked the unit test to make sure it works. |
This is working well. I just tested on the large dataset from givewp.com and it upgraded nicely. |
Description
This PR is for #1715
How Has This Been Tested?
I've tested this checking whether first name and last name of donor as well as user profile are in sync irrespective from where it is updated. I've implemented the change on updation of user profile from admin, donor profile from admin and
[give_profile_editor]
shortcode update from front end.Also, divided single full name field for donor into first name and last name.
Screenshots (jpeg or gifs if applicable):
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: