-
Notifications
You must be signed in to change notification settings - Fork 192
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
fix(compat): prevent missing donation data with Restrict Content Pro #2710 #3243
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # includes/misc-functions.php
ravinderk
changed the title
Issues/2710
fix(compat): prevent missing donation data with Restrict Content Pro #2710
May 22, 2018
Gettig PHP notice when viewing the Donor single page Debug log
[24-May-2018 09:32:08 UTC] PHP Warning: Invalid argument supplied for foreach() in /app/public/wp-content/plugins/Give/includes/admin/donors/donors.php on line 342
[24-May-2018 09:32:08 UTC] PHP Stack trace:
[24-May-2018 09:32:08 UTC] PHP 1. {main}() /app/public/wp-admin/edit.php:0
[24-May-2018 09:32:08 UTC] PHP 2. require_once() /app/public/wp-admin/edit.php:10
[24-May-2018 09:32:08 UTC] PHP 3. do_action() /app/public/wp-admin/admin.php:224
[24-May-2018 09:32:08 UTC] PHP 4. WP_Hook->do_action() /app/public/wp-includes/plugin.php:453
[24-May-2018 09:32:08 UTC] PHP 5. WP_Hook->apply_filters() /app/public/wp-includes/class-wp-hook.php:310
[24-May-2018 09:32:08 UTC] PHP 6. give_donors_page() /app/public/wp-includes/class-wp-hook.php:286
[24-May-2018 09:32:08 UTC] PHP 7. give_render_donor_view() /app/public/wp-content/plugins/Give/includes/admin/donors/donors.php:117
[24-May-2018 09:32:08 UTC] PHP 8. give_donor_view() /app/public/wp-content/plugins/Give/includes/admin/donors/donors.php:283
|
@ravinderk this #3243 (comment) is not related to the above mention issues I have create an new issues for this |
raftaar1191
approved these changes
May 24, 2018
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 I tested this PR within Give Core as well as will Give Add-on everything is working fine
@mehul0810 fixed |
ravinderk
added a commit
that referenced
this pull request
May 28, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR will resolve #2710
How Has This Been Tested?
Tested with Restrict content pro
2.9.12
payment_id
column withdonation_id
$wpdb
propertypaymentmeta
Screenshots (jpeg or gifs if applicable):
I did not replace
$wpdb
paymentmeta
property todonationmeta
inupgrades.php
because that is old code and no need to update that code.Checklist:
payment --> donation
{*}_give_paymentmeta --> {*}_give_donationmeta
payment_id --> donation_id
column