mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-07-29 02:07:27 +08:00
Moves the wcs_get_subscriptions query out of disable_legacy_paypal_standard_on_connect into a protected count_wps_active_subscriptions method. The null/int return type distinguishes "WCS absent" from "zero active subs", and the protected visibility allows anonymous subclasses in unit tests to inject the count without needing function_exists mocking. |
||
|---|---|---|
| .. | ||
| resources/js | ||
| src | ||
| composer.json | ||
| module.php | ||
| services.php | ||