@@ -413,8 +413,9 @@ discard block |
||
| 413 | 413 | $create_ticket_response = wp_remote_retrieve_body( $response ); |
| 414 | 414 | |
| 415 | 415 | // display it |
| 416 | - if( $create_ticket_response ) |
|
| 417 | - echo $create_ticket_response; |
|
| 416 | + if( $create_ticket_response ) { |
|
| 417 | + echo $create_ticket_response; |
|
| 418 | + } |
|
| 418 | 419 | |
| 419 | 420 | } |
| 420 | 421 | |
@@ -1168,7 +1169,7 @@ discard block |
||
| 1168 | 1169 | if( isset( $body['msg'] ) && $body['msg'] == "Everything's Chimpy!" ) { |
| 1169 | 1170 | update_option( 'yikes-mc-api-validation' , 'valid_api_key' ); |
| 1170 | 1171 | } |
| 1171 | - } else { |
|
| 1172 | + } else { |
|
| 1172 | 1173 | require_once YIKES_MC_PATH . 'includes/error_log/class-yikes-inc-easy-mailchimp-error-logging.php'; |
| 1173 | 1174 | $error_logging = new Yikes_Inc_Easy_Mailchimp_Error_Logging(); |
| 1174 | 1175 | $error_logging->yikes_easy_mailchimp_write_to_error_log( $api_key_response->get_error_message() , __( "Connecting to MailChimp" , 'yikes-inc-easy-mailchimp-extender' ) , __( "Settings Page/General Settings" , 'yikes-inc-easy-mailchimp-extender' ) ); |
@@ -1997,7 +1998,8 @@ discard block |
||
| 1997 | 1998 | |
| 1998 | 1999 | |
| 1999 | 2000 | |
| 2000 | - } else { // THIS IS AN INTEREST GROUP! |
|
| 2001 | + } else { |
|
| 2002 | +// THIS IS AN INTEREST GROUP! |
|
| 2001 | 2003 | |
| 2002 | 2004 | ?> |
| 2003 | 2005 | <section class="draggable" id="<?php echo $field['group_id']; ?>"> |
@@ -2954,7 +2956,8 @@ discard block |
||
| 2954 | 2956 | include_once( ABSPATH . WPINC . '/feed.php' ); |
| 2955 | 2957 | $rss = fetch_feed( esc_url( 'http://yikesplugins.com/feed/?post_type=product_ads&genre=easy-forms-for-mailchimp' ) ); |
| 2956 | 2958 | $maxitems = 0; |
| 2957 | - if ( ! is_wp_error( $rss ) ) { // Checks that the object is created correctly |
|
| 2959 | + if ( ! is_wp_error( $rss ) ) { |
|
| 2960 | +// Checks that the object is created correctly |
|
| 2958 | 2961 | // Figure out how many total items there are, but limit it to 1. |
| 2959 | 2962 | $maxitems = $rss->get_item_quantity( 1 ); |
| 2960 | 2963 | // Build an array of all the items, starting with element 0 (first element). |
@@ -2,8 +2,7 @@ discard block |
||
| 2 | 2 | /* |
| 3 | 3 | * Our ajax is processed inside of class.ajax.php |
| 4 | 4 | */ |
| 5 | - class YIKES_Inc_Easy_MailChimp_Dashboard_Widgets |
|
| 6 | - { |
|
| 5 | + class YIKES_Inc_Easy_MailChimp_Dashboard_Widgets { |
|
| 7 | 6 | |
| 8 | 7 | // Construction |
| 9 | 8 | public function __construct() { |
@@ -16,7 +15,8 @@ discard block |
||
| 16 | 15 | |
| 17 | 16 | // enqueue our JS file on the main dashboard page |
| 18 | 17 | function enqueue_dashboard_widget_script( $hook ) { |
| 19 | - if( 'index.php' == $hook ) { // default 'dashboard' page |
|
| 18 | + if( 'index.php' == $hook ) { |
|
| 19 | +// default 'dashboard' page |
|
| 20 | 20 | wp_register_script( 'yikes-easy-mc-dashboard-widget-script' , YIKES_MC_URL . 'admin/js/min/yikes-inc-easy-mailchimp-dashboard-widget.min.js' , array( 'jquery' ) , 'all' , false ); |
| 21 | 21 | $data_array = array( |
| 22 | 22 | 'ajax_url' => esc_url_raw( admin_url( 'admin-ajax.php' ) ), |