woocommerce/plugins
Matt Allan 6a89723685
Update when PayPal Standard is loaded to further reduce new store using this legacy payment method (#47205)
* Change default PP Standard should_load logic to be more strict when setting to true

* Remove filter allowing stores to enable PayPal Standard programmatically

* Adds new function to check if the store has any PayPal Standard orders

* Upgrade script that disables PayPal Standard on stores that aren't using it.

* Add changelog entries

* Fix extra comma

* PayPal email is defaulted to the admin email which means checking needs_setup() isn't reliable

* Load PayPal standard in unit tests

* Before installing WC, set the Paypal Standard should load to true

* Remove unnecessary ternary when setting default should_load

* On upgrading WC, only check for PayPal Standard live keys to determine if it's setup

* Remove admin notice if PayPal Standard is disabled on ugprade

* Display an admin notice if the store is using the deprecated filter to load PayPal Standard.

* Add docblock comment above the apply filters

* Added checks around the filter and give pref to enabled.

git add .

* Remove the should load filter notice.

* Add comment noting that init class shouldnt be removed.

* Use proper casting for this->enabled before usage.

---------

Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2024-05-10 14:04:32 +01:00
..
woo-ai Update @automattic/tour-kit to 1.1.3 and @automattic/components to 2.1.1 (#47129) 2024-05-09 08:56:08 +08:00
woocommerce Update when PayPal Standard is loaded to further reduce new store using this legacy payment method (#47205) 2024-05-10 14:04:32 +01:00
woocommerce-admin LYS - Add padding-left to the copy link (#47313) 2024-05-10 05:02:35 -07:00
woocommerce-beta-tester Use wp_plugin_dependencies_slug in PluginVersionRuleProcessor (#47235) 2024-05-09 15:30:12 -07:00
woocommerce-blocks Remove unnecessary links to an ephemeral site (#47270) 2024-05-08 15:24:25 +02:00