-
Notifications
You must be signed in to change notification settings - Fork 3
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
Simplify data store cpt #159
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #159 +/- ##
============================================
- Coverage 22.38% 22.13% -0.26%
+ Complexity 2553 2537 -16
============================================
Files 108 107 -1
Lines 10197 10187 -10
============================================
- Hits 2283 2255 -28
- Misses 7914 7932 +18
☔ View full report in Codecov by Sentry. |
Just tested this, seems ok. |
This PR may solve this issue:
post_status
cannot benull
#158It also improves/removes these comments:
wp-pay-core/src/Payments/PaymentsDataStoreCPT.php
Lines 276 to 295 in 68e9473
wp-pay-core/src/Subscriptions/SubscriptionsDataStoreCPT.php
Lines 301 to 319 in 68e9473
And it removes some admin controller code from the data store classes:
wp-pay-core/src/Payments/PaymentsDataStoreCPT.php
Lines 199 to 219 in 68e9473
wp-pay-core/src/Subscriptions/SubscriptionsDataStoreCPT.php
Lines 200 to 255 in 68e9473
I still have to check payments and subscriptions posts with WordPress post status
draft
ortrash
.