Completed
Push — staging ( ee16a6...cde0f6 )
by
unknown
16:05 queued 10s
created
admin/partials/helpers/fields/yikes-mailchimp-checkbox-field.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,16 +5,16 @@
 block discarded – undo
5 5
 *	For help on using, see our documentation [https://yikesplugins.com/support/knowledge-base/product/easy-forms-for-mailchimp/]
6 6
 * 	@since 6.0
7 7
 */
8
-	if ( is_string( $form_data['custom_fields'] ) ) {
9
-		$field_data = json_decode( $form_data['custom_fields'] , true );
10
-	} elseif ( is_array( $form_data['custom_fields'] ) ) {
11
-		$field_data = $form_data['custom_fields'];
8
+	if ( is_string( $form_data[ 'custom_fields' ] ) ) {
9
+		$field_data = json_decode( $form_data[ 'custom_fields' ], true );
10
+	} elseif ( is_array( $form_data[ 'custom_fields' ] ) ) {
11
+		$field_data = $form_data[ 'custom_fields' ];
12 12
 	}
13 13
 ?>
14 14
 <label class="custom-field-section">
15
-	<strong><?php echo $field['label']; ?></strong>
16
-	<input type="checkbox" class="widefat" name="custom-field[<?php echo $field['id']; ?>]" id="custom-field" value="1" <?php checked( isset( $field_data[$field['id']] ) ? $field_data[$field['id']] : 0, 1, true ); ?>>
17
-	<?php if( isset( $field['description'] ) && $field['description'] != '' ) { ?>
18
-	<p class="description"><?php echo $field['description']; ?></p>
15
+	<strong><?php echo $field[ 'label' ]; ?></strong>
16
+	<input type="checkbox" class="widefat" name="custom-field[<?php echo $field[ 'id' ]; ?>]" id="custom-field" value="1" <?php checked( isset( $field_data[ $field[ 'id' ] ] ) ? $field_data[ $field[ 'id' ] ] : 0, 1, true ); ?>>
17
+	<?php if ( isset( $field[ 'description' ] ) && $field[ 'description' ] != '' ) { ?>
18
+	<p class="description"><?php echo $field[ 'description' ]; ?></p>
19 19
 	<?php } ?>
20 20
 </label>
Please login to merge, or discard this patch.
admin/partials/helpers/fields/yikes-mailchimp-file-field.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@  discard block
 block discarded – undo
5 5
 	*	For help on using, see our documentation [https://yikesplugins.com/support/knowledge-base/product/easy-forms-for-mailchimp/]
6 6
 	* 	@since 6.0
7 7
 	*/
8
-	if ( is_string( $form_data['custom_fields'] ) ) {
9
-		$field_data = json_decode( $form_data['custom_fields'] , true );
10
-	} elseif ( is_array( $form_data['custom_fields'] ) ) {
11
-		$field_data = $form_data['custom_fields'];
8
+	if ( is_string( $form_data[ 'custom_fields' ] ) ) {
9
+		$field_data = json_decode( $form_data[ 'custom_fields' ], true );
10
+	} elseif ( is_array( $form_data[ 'custom_fields' ] ) ) {
11
+		$field_data = $form_data[ 'custom_fields' ];
12 12
 	}
13 13
 	 
14 14
 	// This will enqueue the Media Uploader script
@@ -16,27 +16,27 @@  discard block
 block discarded – undo
16 16
 	// And let's not forget the script we wrote earlier
17 17
 	wp_enqueue_script( 'yikes-mailchimp-file-field-script', plugin_dir_url( __FILE__ ) . 'js/yikes-mc-file-upload.js', array( 'jquery' ), '1.0', false );
18 18
 	// print_r( $field_data );
19
-	wp_localize_script( 'yikes-mailchimp-file-field-script' , 'additional_data' , array(
19
+	wp_localize_script( 'yikes-mailchimp-file-field-script', 'additional_data', array(
20 20
 		'wp_includes_image_url' => includes_url() . 'images/media/'
21 21
 	) );
22 22
 	$i = 1;
23 23
 	// create an single item array when nothing is stored yet, loop for one field 
24
-	$field_data['incentive-attachment'] = ( isset( $field_data['incentive-attachment'] ) && !empty( $field_data['incentive-attachment'] ) )  ? $field_data['incentive-attachment'] : array( '' );
24
+	$field_data[ 'incentive-attachment' ] = ( isset( $field_data[ 'incentive-attachment' ] ) && ! empty( $field_data[ 'incentive-attachment' ] ) ) ? $field_data[ 'incentive-attachment' ] : array( '' );
25 25
 ?>
26 26
 	
27 27
 	<div class="yikes-mailchimp-file-field">
28
-		<label for="image_url" class="widefat"><strong><?php echo $field['label']; ?></strong></label>
29
-		<?php foreach( $field_data['incentive-attachment'] as $attachment ) { ?>
30
-			<input type="text" name="custom-field[<?php echo $field['id']; ?>][<?php echo $i; ?>]" id="custom-field[<?php echo $field['id']; ?>][<?php echo $i; ?>]" class="file-attachment" value="<?php echo isset( $field_data[$field['id']][$i] ) ? $field_data[$field['id']][$i] : ''; ?>">
31
-			<input type="button" name="upload-btn" id="upload-btn" class="button-secondary" data-attr-position="<?php echo $i; ?>" value="<?php _e( 'Upload File' , 'yikes-inc-easy-mailchimp-extender' ); ?>">
28
+		<label for="image_url" class="widefat"><strong><?php echo $field[ 'label' ]; ?></strong></label>
29
+		<?php foreach ( $field_data[ 'incentive-attachment' ] as $attachment ) { ?>
30
+			<input type="text" name="custom-field[<?php echo $field[ 'id' ]; ?>][<?php echo $i; ?>]" id="custom-field[<?php echo $field[ 'id' ]; ?>][<?php echo $i; ?>]" class="file-attachment" value="<?php echo isset( $field_data[ $field[ 'id' ] ][ $i ] ) ? $field_data[ $field[ 'id' ] ][ $i ] : ''; ?>">
31
+			<input type="button" name="upload-btn" id="upload-btn" class="button-secondary" data-attr-position="<?php echo $i; ?>" value="<?php _e( 'Upload File', 'yikes-inc-easy-mailchimp-extender' ); ?>">
32 32
 			<div class="file-container">
33 33
 				<p class="file-remove-wrapper">
34
-					<a href="#" class="remove-file-button" data-attr-position="<?php echo $i; ?>"><?php _e( 'Remove File' , 'yikes-inc-easy-mailchimp-extender' ); ?></a>
34
+					<a href="#" class="remove-file-button" data-attr-position="<?php echo $i; ?>"><?php _e( 'Remove File', 'yikes-inc-easy-mailchimp-extender' ); ?></a>
35 35
 				</p>
36 36
 			</div>
37 37
 		<?php $i++; } ?>
38
-		<?php if( isset( $field['repeat'] ) ) { ?>
38
+		<?php if ( isset( $field[ 'repeat' ] ) ) { ?>
39 39
 			<a href="#" class="button-secondary add-new-incentive-attachment" data-attr-position="<?php echo $i; ?>"><span class="dashicons dashicons-plus"></span></a>
40 40
 		<?php } ?>
41
-		<p class="description"><?php echo $field['description']; ?></p>
41
+		<p class="description"><?php echo $field[ 'description' ]; ?></p>
42 42
 	</div>
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
admin/partials/helpers/fields/yikes-mailchimp-wysiwyg-field.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,18 +6,18 @@
 block discarded – undo
6 6
 	*	For help on using, see our documentation [https://yikesplugins.com/support/knowledge-base/product/easy-forms-for-mailchimp/]
7 7
 	* 	@since 6.0
8 8
 	*/
9
-	if ( is_string( $form_data['custom_fields'] ) ) {
10
-		$field_data = json_decode( $form_data['custom_fields'] , true );
11
-	} elseif ( is_array( $form_data['custom_fields'] ) ) {
12
-		$field_data = $form_data['custom_fields'];
9
+	if ( is_string( $form_data[ 'custom_fields' ] ) ) {
10
+		$field_data = json_decode( $form_data[ 'custom_fields' ], true );
11
+	} elseif ( is_array( $form_data[ 'custom_fields' ] ) ) {
12
+		$field_data = $form_data[ 'custom_fields' ];
13 13
 	}
14 14
 	
15
-	$content = ( isset( $field_data[$field['id']] ) ) ? $field_data[$field['id']] : ( isset( $field['default'] ) ? $field['default'] : '' );
16
-	$wysiwyg_id = 'custom-field['.$field['id'].']';
15
+	$content = ( isset( $field_data[ $field[ 'id' ] ] ) ) ? $field_data[ $field[ 'id' ] ] : ( isset( $field[ 'default' ] ) ? $field[ 'default' ] : '' );
16
+	$wysiwyg_id = 'custom-field[' . $field[ 'id' ] . ']';
17 17
 ?>
18 18
 
19 19
 <div class="yikes-mailchimp-wysiwyg-field">
20
-    <label for="image_url" class="widefat"><strong><?php echo $field['label']; ?></strong></label>
21
-    <?php wp_editor( $content, $field['id'], array( 'textarea_name' => $wysiwyg_id ) ); ?>
22
-    <p class="description"><?php echo $field['description']; ?></p>
20
+    <label for="image_url" class="widefat"><strong><?php echo $field[ 'label' ]; ?></strong></label>
21
+    <?php wp_editor( $content, $field[ 'id' ], array( 'textarea_name' => $wysiwyg_id ) ); ?>
22
+    <p class="description"><?php echo $field[ 'description' ]; ?></p>
23 23
 </div>
Please login to merge, or discard this patch.
admin/partials/helpers/fields/yikes-mailchimp-radio-field.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,26 +5,26 @@
 block discarded – undo
5 5
 	*	For help on using, see our documentation [https://yikesplugins.com/support/knowledge-base/product/easy-forms-for-mailchimp/]
6 6
 	* 	@since 6.0
7 7
 	*/
8
-	if ( is_string( $form_data['custom_fields'] ) ) {
9
-		$field_data = json_decode( $form_data['custom_fields'] , true );
10
-	} elseif ( is_array( $form_data['custom_fields'] ) ) {
11
-		$field_data = $form_data['custom_fields'];
8
+	if ( is_string( $form_data[ 'custom_fields' ] ) ) {
9
+		$field_data = json_decode( $form_data[ 'custom_fields' ], true );
10
+	} elseif ( is_array( $form_data[ 'custom_fields' ] ) ) {
11
+		$field_data = $form_data[ 'custom_fields' ];
12 12
 	}
13 13
 ?>
14 14
 <div class="custom-field-section">
15 15
 	<!-- title -->
16
-	<strong><?php echo $field['label']; ?></strong>
16
+	<strong><?php echo $field[ 'label' ]; ?></strong>
17 17
 	<!-- radio buttons -->
18 18
 	<section class="custom-radio-holder">
19
-		<?php foreach( $field['options'] as $value => $label ) { ?>
19
+		<?php foreach ( $field[ 'options' ] as $value => $label ) { ?>
20 20
 			<label class="custom-radio-label">
21
-				<input type="radio" name="custom-field[<?php echo $field['id']; ?>][]" id="custom-field" value="<?php echo $value; ?>" <?php if( isset( $field_data[$field['id']] ) ) { checked( $field_data[$field['id']] , $value ); } ?>>
21
+				<input type="radio" name="custom-field[<?php echo $field[ 'id' ]; ?>][]" id="custom-field" value="<?php echo $value; ?>" <?php if ( isset( $field_data[ $field[ 'id' ] ] ) ) { checked( $field_data[ $field[ 'id' ] ], $value ); } ?>>
22 22
 				<?php echo $label; ?>
23 23
 			</label>
24 24
 		<?php } ?>
25 25
 	</section>
26 26
 	<!-- description -->
27
-	<?php if( isset( $field['description'] ) && $field['description'] != '' ) { ?>
28
-		<p class="description"><?php echo $field['description']; ?></p>
27
+	<?php if ( isset( $field[ 'description' ] ) && $field[ 'description' ] != '' ) { ?>
28
+		<p class="description"><?php echo $field[ 'description' ]; ?></p>
29 29
 	<?php } ?>
30 30
 </div>
31 31
\ No newline at end of file
Please login to merge, or discard this patch.
public/partials/shortcodes/yikes-mailchimp-subscriber-count.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 		return '';
27 27
 	}
28 28
 
29
-	$form    = ( ! empty( $attributes['form'] ) ) ? str_replace( '&quot;', '', $attributes['form'] ) : false;
30
-	$list_id = ( ! empty( $attributes['list'] ) ) ? $attributes['list'] : false;
29
+	$form    = ( ! empty( $attributes[ 'form' ] ) ) ? str_replace( '&quot;', '', $attributes[ 'form' ] ) : false;
30
+	$list_id = ( ! empty( $attributes[ 'list' ] ) ) ? $attributes[ 'list' ] : false;
31 31
 
32 32
 	/* If no list ID was passed into the shortcode - bail */
33 33
 	if ( ! $list_id && ! $form ) {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 			return '';
53 53
 		}
54 54
 
55
-		$list_id = sanitize_key( $form_data['list_id'] ); // associated list id (users who fill out the form will be subscribed to this list)
55
+		$list_id = sanitize_key( $form_data[ 'list_id' ] ); // associated list id (users who fill out the form will be subscribed to this list)
56 56
 	}
57 57
 
58 58
 	// object buffer
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	}
72 72
 
73 73
 	/* type cast the returned value as an integer */
74
-	echo (int) apply_filters( 'yikes-mailchimp-subscriber-count-value', $list_data['stats']['member_count'] );
74
+	echo (int) apply_filters( 'yikes-mailchimp-subscriber-count-value', $list_data[ 'stats' ][ 'member_count' ] );
75 75
 
76 76
 	return ob_get_clean();
77 77
 
Please login to merge, or discard this patch.
includes/class-yikes-inc-easy-mailchimp-extender-activator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 			if ( $network_wide ) {
35 35
 				$old_blog = $wpdb->blogid;
36 36
 				// Get all blog ids
37
-				$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
37
+				$blogids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
38 38
 				foreach ( $blogids as $blog_id ) {
39 39
 					switch_to_blog( $blog_id );
40 40
 					self::_activate_yikes_easy_mailchimp( $wpdb );
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 		custom_fields TEXT NOT NULL,
91 91
 		UNIQUE KEY id (id)
92 92
 		) $charset_collate;";
93
-		require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
94
-		dbDelta($sql);
93
+		require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
94
+		dbDelta( $sql );
95 95
 
96 96
 		// create an option for the date that the user initially activated the plugin
97 97
 		// used to display a two week notice, asking for a review or to upgrade
Please login to merge, or discard this patch.
includes/class-yikes-inc-easy-mailchimp-extender-loader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 * @return   type                                   The collection of actions and filters registered with WordPress.
87 87
 	 */
88 88
 	private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) {
89
-		$hooks[] = array(
89
+		$hooks[ ] = array(
90 90
 			'hook'          => $hook,
91 91
 			'component'     => $component,
92 92
 			'callback'      => $callback,
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	public function run() {
104 104
 		foreach ( $this->filters as $hook ) {
105
-			add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
105
+			add_filter( $hook[ 'hook' ], array( $hook[ 'component' ], $hook[ 'callback' ] ), $hook[ 'priority' ], $hook[ 'accepted_args' ] );
106 106
 		}
107 107
 		foreach ( $this->actions as $hook ) {
108
-			add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
108
+			add_action( $hook[ 'hook' ], array( $hook[ 'component' ], $hook[ 'callback' ] ), $hook[ 'priority' ], $hook[ 'accepted_args' ] );
109 109
 		}
110 110
 	}
111 111
 }
112 112
\ No newline at end of file
Please login to merge, or discard this patch.
admin/partials/dashboard-widgets/templates/stats-list-template.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 /* The template file for displaying our stats in the Admin dashboard widget */
3 3
 
4 4
 if ( isset( $list_data ) ) {
5
-	if ( isset( $list_data['id'] ) ) {
5
+	if ( isset( $list_data[ 'id' ] ) ) {
6 6
 
7 7
 	// When a user selects a list from the dropdown, capture the array value here
8 8
 	$list = $list_data;
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
 		// Get the list IDs, capture the first list ID
14 14
 		$first_list_id = '';
15 15
 		$list_ids = array_keys( $list_data );
16
-		if ( is_array( $list_ids ) && isset( $list_ids[0] ) ) {
17
-			$first_list_id = $list_ids[0];
16
+		if ( is_array( $list_ids ) && isset( $list_ids[ 0 ] ) ) {
17
+			$first_list_id = $list_ids[ 0 ];
18 18
 		}
19 19
 
20 20
 		// Set our $list value to the first list in the list_data array
21
-		if ( isset( $list_data[ $first_list_id ] ) && is_array( $list_data[ $first_list_id ] ) && isset( $list_data[ $first_list_id ]['id'] ) ) {
21
+		if ( isset( $list_data[ $first_list_id ] ) && is_array( $list_data[ $first_list_id ] ) && isset( $list_data[ $first_list_id ][ 'id' ] ) ) {
22 22
 			$list = $list_data[ $first_list_id ];
23 23
 		}
24 24
 	}
@@ -31,36 +31,36 @@  discard block
 block discarded – undo
31 31
 
32 32
 ?>
33 33
 <section id="yikes-easy-mc-widget-stat-holder">
34
-	<h3><?php echo $list['name']; ?> <small><a href="<?php echo esc_url_raw( admin_url( 'admin.php?page=yikes-mailchimp-view-list&list-id=' . $list['id'] . '' ) ); ?>" title="<?php _e( 'view List' , 'yikes-inc-easy-mailchimp-extender' ); ?>"><?php _e( 'view list' , 'yikes-inc-easy-mailchimp-extender' ); ?></a></small></h3>
34
+	<h3><?php echo $list[ 'name' ]; ?> <small><a href="<?php echo esc_url_raw( admin_url( 'admin.php?page=yikes-mailchimp-view-list&list-id=' . $list[ 'id' ] . '' ) ); ?>" title="<?php _e( 'view List', 'yikes-inc-easy-mailchimp-extender' ); ?>"><?php _e( 'view list', 'yikes-inc-easy-mailchimp-extender' ); ?></a></small></h3>
35 35
 	
36 36
 	<table class="yikes-easy-mc-stats-table">
37 37
 		<thead class="yikes-easy-mc-hidden">
38 38
 			<tr>
39
-				<th><?php _e( 'Subscribers' , 'yikes-inc-easy-mailchimp-extender' ); ?></th>
40
-				<th><?php _e( 'Unsubscribed' , 'yikes-inc-easy-mailchimp-extender' ); ?></th>
41
-				<th><?php _e( 'New Since Send' , 'yikes-inc-easy-mailchimp-extender' ); ?></th>	
42
-				<th><?php _e( 'Avg. Sub. Rate' , 'yikes-inc-easy-mailchimp-extender' ); ?></th>
39
+				<th><?php _e( 'Subscribers', 'yikes-inc-easy-mailchimp-extender' ); ?></th>
40
+				<th><?php _e( 'Unsubscribed', 'yikes-inc-easy-mailchimp-extender' ); ?></th>
41
+				<th><?php _e( 'New Since Send', 'yikes-inc-easy-mailchimp-extender' ); ?></th>	
42
+				<th><?php _e( 'Avg. Sub. Rate', 'yikes-inc-easy-mailchimp-extender' ); ?></th>
43 43
 			</tr>
44 44
 		</thead>
45 45
 		<tbody>
46 46
 			<tr class="yikes-easy-mc-table-stats-tr yikes-easy-mc-table-stats-tr-first">
47
-				<td title="<?php _e( 'Number of active subscribers.' , 'yikes-inc-easy-mailchimp-extender' ); ?>">
48
-					<p class="yikes-easy-mc-dashboard-stat"><?php echo $list['stats']['member_count']; ?></p>
49
-						<p class="yikes-easy-mc-stat-list-label"><?php _e( 'subscribers' , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
47
+				<td title="<?php _e( 'Number of active subscribers.', 'yikes-inc-easy-mailchimp-extender' ); ?>">
48
+					<p class="yikes-easy-mc-dashboard-stat"><?php echo $list[ 'stats' ][ 'member_count' ]; ?></p>
49
+						<p class="yikes-easy-mc-stat-list-label"><?php _e( 'subscribers', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
50 50
 				</td>
51
-				<td title="<?php _e( 'Number of users who have unsusbscribed.' , 'yikes-inc-easy-mailchimp-extender' ); ?>">
52
-					<p class="yikes-easy-mc-dashboard-stat"><?php echo $list['stats']['unsubscribe_count']; ?></p>
53
-						<p class="yikes-easy-mc-stat-list-label"><?php _e( 'unsubscribed' , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
51
+				<td title="<?php _e( 'Number of users who have unsusbscribed.', 'yikes-inc-easy-mailchimp-extender' ); ?>">
52
+					<p class="yikes-easy-mc-dashboard-stat"><?php echo $list[ 'stats' ][ 'unsubscribe_count' ]; ?></p>
53
+						<p class="yikes-easy-mc-stat-list-label"><?php _e( 'unsubscribed', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
54 54
 				</td>
55 55
 			</tr>
56 56
 			<tr class="yikes-easy-mc-table-stats-tr  yikes-easy-mc-table-stats-tr-second">
57
-				<td title="<?php _e( 'Number of new subscribers since the last campaign was sent.' , 'yikes-inc-easy-mailchimp-extender' ); ?>">
58
-					<p class="yikes-easy-mc-dashboard-stat"><?php echo $list['stats']['member_count_since_send']; ?></p>
59
-						<p class="yikes-easy-mc-stat-list-label"><?php _e( 'new since send' , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
57
+				<td title="<?php _e( 'Number of new subscribers since the last campaign was sent.', 'yikes-inc-easy-mailchimp-extender' ); ?>">
58
+					<p class="yikes-easy-mc-dashboard-stat"><?php echo $list[ 'stats' ][ 'member_count_since_send' ]; ?></p>
59
+						<p class="yikes-easy-mc-stat-list-label"><?php _e( 'new since send', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
60 60
 				</td>
61
-				<td title="<?php _e( 'Average number of subscribers per month.' , 'yikes-inc-easy-mailchimp-extender' ); ?>">
62
-					<p class="yikes-easy-mc-dashboard-stat"><?php echo $list['stats']['avg_sub_rate']; ?></p>
63
-						<p class="yikes-easy-mc-stat-list-label"><?php _e( 'avg. sub. rate' , 'yikes-inc-easy-mailchimp-extender' ); ?></p>
61
+				<td title="<?php _e( 'Average number of subscribers per month.', 'yikes-inc-easy-mailchimp-extender' ); ?>">
62
+					<p class="yikes-easy-mc-dashboard-stat"><?php echo $list[ 'stats' ][ 'avg_sub_rate' ]; ?></p>
63
+						<p class="yikes-easy-mc-stat-list-label"><?php _e( 'avg. sub. rate', 'yikes-inc-easy-mailchimp-extender' ); ?></p>
64 64
 				</td>
65 65
 			</tr>
66 66
 		</tbody>
Please login to merge, or discard this patch.
includes/class-yikes-inc-easy-mailchimp-extender-uninstall.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 		if ( function_exists( 'is_multisite' ) && is_multisite() ) {
9 9
 			// users can only unisntall a plugin from the network dashboard page
10 10
 			// Get all blog ids
11
-			$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
11
+			$blogids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
12 12
 			foreach ( $blogids as $blog_id ) {
13 13
 				switch_to_blog( $blog_id );
14 14
 				self::_uninstall_yikes_easy_mailchimp( $wpdb );
@@ -28,15 +28,15 @@  discard block
 block discarded – undo
28 28
 	 * @since    6.0.0
29 29
 	 */
30 30
 	static function _uninstall_yikes_easy_mailchimp( $wpdb ) {
31
-		require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
31
+		require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
32 32
 
33 33
 		/* Clean up and delete our custom table from the databse */
34
-		$table = $wpdb->prefix."yikes_easy_mc_forms";
34
+		$table = $wpdb->prefix . "yikes_easy_mc_forms";
35 35
 		$sql = 'DROP TABLE IF EXISTS ' . $table;
36 36
 
37 37
 		//Delete any options thats stored also?
38 38
 		$wpdb->query( $sql );
39
-		dbDelta($sql);
39
+		dbDelta( $sql );
40 40
 
41 41
 		/* Clear All Transient Data */
42 42
 		delete_transient( 'yikes-easy-mailchimp-list-data' );
Please login to merge, or discard this patch.