woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
61 stars 47 forks source link

Fix the fatal error when the ppcp-paylater-configurator module is disabled (3207) #2327

Closed danieldudzic closed 3 weeks ago

danieldudzic commented 1 month ago

Description

This PR makes the ppcp-paylater-wc-blocks module dependent on ppcp-paylater-configurator being loaded (as the WC PayLater Blocks are dependent on the settings of the Pay Later configurator).

Steps to Test

  1. Install the Code Snippets plugin.
  2. Add the following code: add_filter( 'woocommerce.feature-flags.woocommerce_paypal_payments.paylater_configurator_enabled', '__return_false' );
  3. Load a page (frontend).
  4. Confirm there is no fatal error.

Screenshots

N/A