mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
use boolean as option value
This commit is contained in:
parent
ca86cb83ae
commit
0eb932a73e
2 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ class SwitchSettingsUiEndpoint {
|
|||
|
||||
$this->settings_data_migration->migrate();
|
||||
|
||||
update_option( self::OPTION_NAME_MIGRATION_IS_DONE, 'yes' );
|
||||
update_option( self::OPTION_NAME_MIGRATION_IS_DONE, true );
|
||||
wp_send_json_success();
|
||||
} catch ( Exception $error ) {
|
||||
wp_send_json_error( array( 'message' => $error->getMessage() ), 500 );
|
||||
|
|
|
@ -256,7 +256,7 @@ class TodosDefinition {
|
|||
* @return bool True if the migration is marked as done, false otherwise.
|
||||
*/
|
||||
protected function is_settings_migration_done(): bool {
|
||||
return 'yes' === get_option( SwitchSettingsUiEndpoint::OPTION_NAME_MIGRATION_IS_DONE );
|
||||
return '1' === get_option( SwitchSettingsUiEndpoint::OPTION_NAME_MIGRATION_IS_DONE );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue