Skip to content
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

Merged
merged 109 commits into from
Sep 25, 2017
Merged

Issue/1715 #1885

merged 109 commits into from
Sep 25, 2017

Conversation

mehul0810
Copy link
Contributor

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):

image

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

$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' )
Copy link
Collaborator

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' )
);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ravinderk Improved Code

@ravinderk ravinderk mentioned this pull request Sep 20, 2017
2 tasks

}

add_action( 'user_register', 'give_add_past_donations_to_new_user' );
Copy link
Collaborator

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

@DevinWalker DevinWalker mentioned this pull request Sep 22, 2017
3 tasks
@mehul0810 mehul0810 mentioned this pull request Sep 22, 2017
3 tasks
@ravinderk
Copy link
Collaborator

@mehul0810
While saving name with profile editor, I am getting error notice.
Let me know if you also able to produce it.

oyagxc0amr

@mehul0810
Copy link
Contributor Author

@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.

@DevinWalker
Copy link
Member

This is working well. I just tested on the large dataset from givewp.com and it upgraded nicely.

@DevinWalker DevinWalker merged commit a05226f into impress-org:release/2.0 Sep 25, 2017
@ravinderk ravinderk removed this from the 2.0 milestone Nov 30, 2017
@mehul0810 mehul0810 deleted the issue/1715 branch December 8, 2017 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants