Skip to content

Commit 85dc0c3

Browse files
committed
jquery.org: Handle missing Stripe keys.
1 parent 180212b commit 85dc0c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mu-plugins/jquery.org/stripe.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php
22

3+
// The Stripe keys must be defined in wp-config.php
4+
if ( !defined('STRIPE_PUBLIC') ) {
5+
define( 'STRIPE_PUBLIC', '' );
6+
define( 'STRIPE_SECRET', '' );
7+
}
8+
39
class StripeForm {
410
public static function init() {
511
wp_enqueue_script( 'stripe', get_template_directory_uri() . '/js/stripe.js' );

0 commit comments

Comments
 (0)