Plugin Updates
This commit is contained in:
@@ -107,9 +107,8 @@ class WPCF7_Stripe extends WPCF7_Service {
|
||||
$this->reset_data();
|
||||
$redirect_to = $this->menu_page_url( 'action=setup' );
|
||||
} else {
|
||||
$publishable = isset( $_POST['publishable'] ) ?
|
||||
trim( $_POST['publishable'] ) : '';
|
||||
$secret = isset( $_POST['secret'] ) ? trim( $_POST['secret'] ) : '';
|
||||
$publishable = trim( $_POST['publishable'] ?? '' );
|
||||
$secret = trim( $_POST['secret'] ?? '' );
|
||||
|
||||
if ( $publishable and $secret ) {
|
||||
$this->api_keys = array(
|
||||
|
||||
@@ -80,7 +80,7 @@ function wpcf7_stripe_enqueue_scripts() {
|
||||
)
|
||||
),
|
||||
$assets['version'],
|
||||
true
|
||||
array( 'in_footer' => true )
|
||||
);
|
||||
|
||||
$api_keys = $service->get_api_keys();
|
||||
|
||||
Reference in New Issue
Block a user