public/partials/shortcodes/process_form_shortcode.php 1 location
|
@@ 34-36 (lines=3) @@
|
| 31 |
|
$form_submitted = isset( $form_submitted ) ? $form_submitted : 0; |
| 32 |
|
|
| 33 |
|
/* If the user hasn't authenticated yet, lets kill off */ |
| 34 |
|
if( get_option( 'yikes-mc-api-validation' , 'invalid_api_key' ) != 'valid_api_key' ) { |
| 35 |
|
return '<div class="invalid-api-key-error"><p>' . __( "Whoops, you're not connected to MailChimp. You need to enter a valid MailChimp API key." , 'yikes-inc-easy-mailchimp-extender' ) . '</p></div>'; |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
// if the user forgot to specify a form ID, lets kill of and warn them. |
| 39 |
|
if( ! $form ) { |
public/partials/shortcodes/yikes-mailchimp-subscriber-count.php 1 location
|
@@ 19-24 (lines=6) @@
|
| 16 |
|
); |
| 17 |
|
|
| 18 |
|
/* If the user hasn't authenticated yet - bail */ |
| 19 |
|
if( get_option( 'yikes-mc-api-validation' , 'invalid_api_key' ) != 'valid_api_key' ) { |
| 20 |
|
if( WP_DEBUG ) { |
| 21 |
|
return '<strong>' . __( "You don't appear to be connected to MailChimp.", "yikes-inc-easy-mailchimp-extender" ) . '</strong>'; |
| 22 |
|
} |
| 23 |
|
return; |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
$form = ( ! empty( $attributes['form'] ) ) ? str_replace( '"', '', $attributes['form'] ) : false; // replace the sanitize quotes to perform a proper query |
| 27 |
|
$list_id = ( ! empty( $attributes['list'] ) ) ? $attributes['list'] : false; |