mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Rename version option
This commit is contained in:
parent
5bb7c80622
commit
1f9a0f8a39
1 changed files with 2 additions and 2 deletions
|
@ -87,9 +87,9 @@ define( 'PPCP_FLAG_SUBSCRIPTION', true );
|
|||
}
|
||||
$plugin_data = get_plugin_data( __DIR__ . '/woocommerce-paypal-payments.php' );
|
||||
$plugin_version = $plugin_data['Version'] ?? null;
|
||||
if ( get_option( 'woocommerce-ppcp-upgrading-version' ) !== $plugin_version ) {
|
||||
if ( get_option( 'woocommerce-ppcp-version' ) !== $plugin_version ) {
|
||||
do_action( 'woocommerce_paypal_payments_gateway_migrate' );
|
||||
update_option( 'woocommerce-ppcp-upgrading-version', $plugin_version );
|
||||
update_option( 'woocommerce-ppcp-version', $plugin_version );
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue