Passed
Push — master ( 8b4016...0ea9fe )
by
unknown
11:14
created
includes/admin/admin.php 2 patches
Indentation   +176 added lines, -176 removed lines patch added patch discarded remove patch
@@ -27,22 +27,22 @@  discard block
 block discarded – undo
27 27
     $menu_icon_inline = monsterinsights_get_inline_menu_icon();
28 28
 
29 29
     if ( $hook === 'monsterinsights_settings' ) {
30
-        // If dashboards disabled, first settings page
31
-        add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page',  $menu_icon_inline, '100.00013467543' );
32
-        $hook = 'monsterinsights_settings';
30
+	// If dashboards disabled, first settings page
31
+	add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page',  $menu_icon_inline, '100.00013467543' );
32
+	$hook = 'monsterinsights_settings';
33 33
 
34
-        add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' );
34
+	add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' );
35 35
     } else {
36
-        // if dashboards enabled, first dashboard
37
-        add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page',  $menu_icon_inline, '100.00013467543' );
36
+	// if dashboards enabled, first dashboard
37
+	add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page',  $menu_icon_inline, '100.00013467543' );
38 38
 
39
-        add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' );
39
+	add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' );
40 40
 
41
-        // then settings page
42
-        add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page' );
41
+	// then settings page
42
+	add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page' );
43 43
 
44
-        // Add dashboard submenu.
45
-        add_submenu_page( 'index.php', __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'admin.php?page=monsterinsights_reports' );
44
+	// Add dashboard submenu.
45
+	add_submenu_page( 'index.php', __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'admin.php?page=monsterinsights_reports' );
46 46
     }
47 47
 
48 48
     $submenu_base = add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     // then addons
57 57
     $network_key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_network_license_key() : '';
58 58
     if ( ! monsterinsights_is_network_active() || ( monsterinsights_is_network_active() && empty( $network_key ) ) ) {
59
-        add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:' . monsterinsights_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' );
59
+	add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:' . monsterinsights_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' );
60 60
     }
61 61
 
62 62
     // Add About us page.
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
 function monsterinsights_get_menu_hook() {
68 68
     $dashboards_disabled = monsterinsights_get_option( 'dashboards_disabled', false );
69 69
     if ( $dashboards_disabled || ( current_user_can( 'monsterinsights_save_settings' ) && ! current_user_can( 'monsterinsights_view_dashboard' ) ) ) {
70
-        return 'monsterinsights_settings';
70
+	return 'monsterinsights_settings';
71 71
     } else {
72
-        return 'monsterinsights_reports';
72
+	return 'monsterinsights_reports';
73 73
     }
74 74
 }
75 75
 
@@ -80,12 +80,12 @@  discard block
 block discarded – undo
80 80
     // First, let's see if this is an MS network enabled plugin. If it is, we should load the license
81 81
     // menu page and the updater on the network panel
82 82
     if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
83
-        require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
83
+	require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
84 84
     }
85 85
 
86 86
     $plugin = plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE );
87 87
     if ( ! is_plugin_active_for_network( $plugin ) ) {
88
-        return;
88
+	return;
89 89
     }
90 90
 
91 91
     $menu_icon_inline = monsterinsights_get_inline_menu_icon();
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 function monsterinsights_add_admin_body_class( $classes ) {
117 117
     $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
118 118
     if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) {
119
-        return $classes;
119
+	return $classes;
120 120
     }
121 121
 
122 122
     return "$classes monsterinsights_page ";
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
134 134
 
135 135
     if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id  ) {
136
-        return $classes;
136
+	return $classes;
137 137
     }
138 138
 
139 139
     return "$classes insights_page_monsterinsights_tools ";
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 function monsterinsights_add_admin_body_class_addons_page( $classes ) {
150 150
     $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
151 151
     if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id  ) {
152
-        return $classes;
152
+	return $classes;
153 153
     }
154 154
 
155 155
     return "$classes insights_page_monsterinsights_addons ";
@@ -169,17 +169,17 @@  discard block
 block discarded – undo
169 169
 
170 170
     // If lite, show a link where they can get pro from
171 171
     if ( ! monsterinsights_is_pro_version() ) {
172
-        $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>';
173
-        array_unshift( $links, $get_pro );
172
+	$get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>';
173
+	array_unshift( $links, $get_pro );
174 174
     }
175 175
 
176 176
     // If Lite, support goes to forum. If pro, it goes to our website
177 177
     if ( monsterinsights_is_pro_version() ) {
178
-        $support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
179
-        array_unshift( $links, $support );
178
+	$support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
179
+	array_unshift( $links, $support );
180 180
     } else {
181
-        $support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
182
-        array_unshift( $links, $support );
181
+	$support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
182
+	array_unshift( $links, $support );
183 183
     }
184 184
 
185 185
 	if ( is_network_admin() ) {
@@ -208,26 +208,26 @@  discard block
 block discarded – undo
208 208
 function monsterinsights_load_admin_partial( $template, $data = array() ) {
209 209
 
210 210
     if ( monsterinsights_is_pro_version() ) {
211
-        $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' );
211
+	$dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' );
212 212
 
213
-        if ( file_exists( $dir . $template . '.php' ) ) {
214
-            require_once(  $dir . $template . '.php' );
215
-            return true;
216
-        }
213
+	if ( file_exists( $dir . $template . '.php' ) ) {
214
+	    require_once(  $dir . $template . '.php' );
215
+	    return true;
216
+	}
217 217
     } else {
218
-        $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' );
218
+	$dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' );
219 219
 
220
-        if ( file_exists( $dir . $template . '.php' ) ) {
221
-            require_once(  $dir . $template . '.php' );
222
-            return true;
223
-        }
220
+	if ( file_exists( $dir . $template . '.php' ) ) {
221
+	    require_once(  $dir . $template . '.php' );
222
+	    return true;
223
+	}
224 224
     }
225 225
 
226 226
     $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'includes/admin/partials' );
227 227
 
228 228
     if ( file_exists( $dir . $template . '.php' ) ) {
229
-        require_once(  $dir . $template . '.php' );
230
-        return true;
229
+	require_once(  $dir . $template . '.php' );
230
+	return true;
231 231
     }
232 232
 
233 233
     return false;
@@ -244,9 +244,9 @@  discard block
 block discarded – undo
244 244
 function monsterinsights_admin_footer( $text ) {
245 245
     global $current_screen;
246 246
     if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'monsterinsights' ) !== false ) {
247
-        $url  = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5';
248
-        // Translators: Placeholders add a link to the wordpress.org repository.
249
-        $text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' .  $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' );
247
+	$url  = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5';
248
+	// Translators: Placeholders add a link to the wordpress.org repository.
249
+	$text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' .  $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' );
250 250
     }
251 251
     return $text;
252 252
 }
@@ -257,12 +257,12 @@  discard block
 block discarded – undo
257 257
     // Don't show on MonsterInsights pages
258 258
     $screen = get_current_screen();
259 259
     if ( empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) !== false ) {
260
-        return;
260
+	return;
261 261
     }
262 262
 
263 263
     // Make sure they have the permissions to do something
264 264
     if ( ! current_user_can( 'monsterinsights_save_settings' ) ) {
265
-        return;
265
+	return;
266 266
     }
267 267
 
268 268
     // Priority:
@@ -280,89 +280,89 @@  discard block
 block discarded – undo
280 280
     // 1. Google Analytics not authenticated
281 281
 	if ( ! is_network_admin() && ! monsterinsights_get_ua() && ! defined( 'MONSTERINSIGHTS_DISABLE_TRACKING' ) ) {
282 282
 
283
-        $submenu_base = is_network_admin() ? add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) ) : add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
284
-        $title     = esc_html__( 'Please Setup Website Analytics to See Audience Insights', 'google-analytics-for-wordpress' );
285
-        $primary   = esc_html__( 'Connect MonsterInsights and Setup Website Analytics', 'google-analytics-for-wordpress' );
286
-        $urlone    = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights-onboarding' ) : admin_url( 'admin.php?page=monsterinsights-onboarding' );
287
-        $secondary = esc_html__( 'Learn More', 'google-analytics-for-wordpress' );
288
-        $urltwo    = $submenu_base . '#/about/getting-started';
289
-        $message   = esc_html__( 'MonsterInsights, WordPress analytics plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 3 million website owners use MonsterInsights to see the stats that matter and grow their business.', 'google-analytics-for-wordpress' );
290
-        echo '<div class="notice notice-info"><p style="font-weight:700">'. $title .'</p><p>'. $message.'</p><p><a href="'. $urlone .'" class="button-primary">'. $primary .'</a>&nbsp;&nbsp;&nbsp;<a href="'. $urltwo .'" class="button-secondary">'. $secondary .'</a></p></div>';
291
-        return;
283
+	$submenu_base = is_network_admin() ? add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) ) : add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) );
284
+	$title     = esc_html__( 'Please Setup Website Analytics to See Audience Insights', 'google-analytics-for-wordpress' );
285
+	$primary   = esc_html__( 'Connect MonsterInsights and Setup Website Analytics', 'google-analytics-for-wordpress' );
286
+	$urlone    = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights-onboarding' ) : admin_url( 'admin.php?page=monsterinsights-onboarding' );
287
+	$secondary = esc_html__( 'Learn More', 'google-analytics-for-wordpress' );
288
+	$urltwo    = $submenu_base . '#/about/getting-started';
289
+	$message   = esc_html__( 'MonsterInsights, WordPress analytics plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 3 million website owners use MonsterInsights to see the stats that matter and grow their business.', 'google-analytics-for-wordpress' );
290
+	echo '<div class="notice notice-info"><p style="font-weight:700">'. $title .'</p><p>'. $message.'</p><p><a href="'. $urlone .'" class="button-primary">'. $primary .'</a>&nbsp;&nbsp;&nbsp;<a href="'. $urltwo .'" class="button-secondary">'. $secondary .'</a></p></div>';
291
+	return;
292 292
     }
293 293
 
294 294
     // 2. License key not entered for pro
295 295
     $key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_license_key() : '';
296 296
     if ( monsterinsights_is_pro_version() && empty( $key ) ) {
297
-        $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
298
-        // Translators: Adds a link to retrieve the license.
299
-        $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' );
300
-        echo '<div class="error"><p>'. $message.'</p></div>';
301
-        return;
297
+	$page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
298
+	// Translators: Adds a link to retrieve the license.
299
+	$message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' );
300
+	echo '<div class="error"><p>'. $message.'</p></div>';
301
+	return;
302 302
     }
303 303
 
304 304
     // 3. License key not valid/okay for pro
305 305
     if ( monsterinsights_is_pro_version() ) {
306
-        $message = '';
307
-        if ( MonsterInsights()->license->get_site_license_key() ){
308
-            if ( MonsterInsights()->license->site_license_expired() ) {
309
-	            // Translators: Adds a link to the license renewal.
310
-                $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
311
-            } else if ( MonsterInsights()->license->site_license_disabled() ) {
312
-                $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
313
-            } else if ( MonsterInsights()->license->site_license_invalid() ) {
314
-                $message = esc_html__( 'Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' );
315
-            }
316
-        } else if ( MonsterInsights()->license->get_network_license_key() ) {
317
-            if ( MonsterInsights()->license->network_license_expired() ) {
318
-            	// Translators: Adds a link to renew license.
319
-                $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
320
-            } else if ( MonsterInsights()->license->network_license_disabled() ) {
321
-                $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
322
-            } else if ( MonsterInsights()->license->network_license_invalid() ) {
323
-                $message = esc_html__( 'Your network license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' );
324
-            }
325
-        }
326
-        if ( ! empty( $message ) ) {
327
-            echo '<div class="error"><p>'. $message.'</p></div>';
328
-            return;
329
-        }
306
+	$message = '';
307
+	if ( MonsterInsights()->license->get_site_license_key() ){
308
+	    if ( MonsterInsights()->license->site_license_expired() ) {
309
+		    // Translators: Adds a link to the license renewal.
310
+		$message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
311
+	    } else if ( MonsterInsights()->license->site_license_disabled() ) {
312
+		$message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
313
+	    } else if ( MonsterInsights()->license->site_license_invalid() ) {
314
+		$message = esc_html__( 'Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' );
315
+	    }
316
+	} else if ( MonsterInsights()->license->get_network_license_key() ) {
317
+	    if ( MonsterInsights()->license->network_license_expired() ) {
318
+	    	// Translators: Adds a link to renew license.
319
+		$message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
320
+	    } else if ( MonsterInsights()->license->network_license_disabled() ) {
321
+		$message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
322
+	    } else if ( MonsterInsights()->license->network_license_invalid() ) {
323
+		$message = esc_html__( 'Your network license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' );
324
+	    }
325
+	}
326
+	if ( ! empty( $message ) ) {
327
+	    echo '<div class="error"><p>'. $message.'</p></div>';
328
+	    return;
329
+	}
330 330
     }
331 331
 
332 332
     // 4. Notices for PHP/WP version deprecations
333 333
     if ( current_user_can( 'update_core' ) ) {
334
-        global $wp_version;
335
-
336
-        // PHP 5.2-5.5
337
-        if ( version_compare( phpversion(), '5.6', '<' ) ) {
338
-            $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
339
-            // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
340
-            $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
341
-            echo '<div class="error"><p>'. $message.'</p></div>';
342
-            return;
343
-        }
344
-        // WordPress 3.0 - 4.5
345
-        else if ( version_compare( $wp_version, '4.9', '<' ) ) {
346
-            $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
347
-            // Translators: Placeholders add the current WordPress version and links to the MonsterInsights blog
348
-            $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in 2020.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
349
-            echo '<div class="error"><p>'. $message.'</p></div>';
350
-            return;
351
-        }
352
-        // PHP 5.4/5.5
353
-        // else if ( version_compare( phpversion(), '5.6', '<' ) ) {
354
-        //  $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
355
-        //  $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress will stop supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
356
-        //  echo '<div class="error"><p>'. $message.'</p></div>';
357
-        //  return;
358
-        // }
359
-        // // WordPress 4.6 - 4.8
360
-        // else if ( version_compare( $wp_version, '4.9', '<' ) ) {
361
-        //  $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
362
-        //  $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in October, 2019.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
363
-        //  echo '<div class="error"><p>'. $message.'</p></div>';
364
-        //  return;
365
-        // }
334
+	global $wp_version;
335
+
336
+	// PHP 5.2-5.5
337
+	if ( version_compare( phpversion(), '5.6', '<' ) ) {
338
+	    $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
339
+	    // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
340
+	    $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
341
+	    echo '<div class="error"><p>'. $message.'</p></div>';
342
+	    return;
343
+	}
344
+	// WordPress 3.0 - 4.5
345
+	else if ( version_compare( $wp_version, '4.9', '<' ) ) {
346
+	    $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
347
+	    // Translators: Placeholders add the current WordPress version and links to the MonsterInsights blog
348
+	    $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in 2020.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
349
+	    echo '<div class="error"><p>'. $message.'</p></div>';
350
+	    return;
351
+	}
352
+	// PHP 5.4/5.5
353
+	// else if ( version_compare( phpversion(), '5.6', '<' ) ) {
354
+	//  $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
355
+	//  $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress will stop supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
356
+	//  echo '<div class="error"><p>'. $message.'</p></div>';
357
+	//  return;
358
+	// }
359
+	// // WordPress 4.6 - 4.8
360
+	// else if ( version_compare( $wp_version, '4.9', '<' ) ) {
361
+	//  $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
362
+	//  $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in October, 2019.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
363
+	//  echo '<div class="error"><p>'. $message.'</p></div>';
364
+	//  return;
365
+	// }
366 366
     }
367 367
 
368 368
     // 5. Optin setting not configured
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 
393 393
     $notices   = get_option( 'monsterinsights_notices' );
394 394
     if ( ! is_array( $notices ) ) {
395
-        $notices = array();
395
+	$notices = array();
396 396
     }
397 397
 
398 398
     // 6. Authenticate, not manual
@@ -436,75 +436,75 @@  discard block
 block discarded – undo
436 436
 
437 437
     // 8. WooUpsell
438 438
     if ( ! monsterinsights_is_pro_version() && class_exists( 'WooCommerce' ) ) {
439
-        if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) {
440
-            echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">';
441
-                echo '<div class="monsterinsights-wooedd-upsell-left">';
442
-                    echo '<p><strong>';
443
-                    echo esc_html( 'Enhanced Ecommerce Analytics for Your WooCommerce Store', 'google-analytics-for-wordpress' );
444
-                    echo '</strong></p>';
445
-                    echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
446
-                    echo '<p>';
447
-                    echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' );
448
-                    echo '</p>';
449
-                    echo '<p>';
450
-                    echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' );
451
-                    echo '</p>';
452
-                    echo '<p>';
453
-                    echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' );
454
-                    echo '</p>';
455
-                    echo '<p>';
456
-                    echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
457
-                    echo '</p>';
458
-                    // Translators: Placeholders add a link to the MonsterInsights website.
459
-                    echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' &raquo;</a>' );
460
-                    echo '</p>';
461
-                echo '</div><div class="monsterinsights-wooedd-upsell-right">';
462
-                    echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
463
-                echo '</div>';
464
-            echo '</div>';
465
-            echo '<style type="text/css">.monsterinsights-wooedd-upsell-left{width:50%;display:table-cell;float:left}.monsterinsights-wooedd-upsell-right{width:50%;display:table-cell;float:left}.monsterinsights-wooedd-upsell-image{width:100%;height:auto;padding:20px}.monsterinsights-wooedd-upsell-image-small{display:none}.monsterinsights-wooedd-upsell-row{display:table}.monsterinsights-wooedd-upsell-left p{margin:1em 0;font-size:16px}@media (max-width:900px){.monsterinsights-wooedd-upsell-left{width:100%}.monsterinsights-wooedd-upsell-right{display:none}.monsterinsights-wooedd-upsell-image-small{display:block}.monsterinsights-wooedd-upsell-image-large{display:none}}</style>';
466
-            return;
467
-        }
439
+	if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) {
440
+	    echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">';
441
+		echo '<div class="monsterinsights-wooedd-upsell-left">';
442
+		    echo '<p><strong>';
443
+		    echo esc_html( 'Enhanced Ecommerce Analytics for Your WooCommerce Store', 'google-analytics-for-wordpress' );
444
+		    echo '</strong></p>';
445
+		    echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
446
+		    echo '<p>';
447
+		    echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' );
448
+		    echo '</p>';
449
+		    echo '<p>';
450
+		    echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' );
451
+		    echo '</p>';
452
+		    echo '<p>';
453
+		    echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' );
454
+		    echo '</p>';
455
+		    echo '<p>';
456
+		    echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
457
+		    echo '</p>';
458
+		    // Translators: Placeholders add a link to the MonsterInsights website.
459
+		    echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' &raquo;</a>' );
460
+		    echo '</p>';
461
+		echo '</div><div class="monsterinsights-wooedd-upsell-right">';
462
+		    echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
463
+		echo '</div>';
464
+	    echo '</div>';
465
+	    echo '<style type="text/css">.monsterinsights-wooedd-upsell-left{width:50%;display:table-cell;float:left}.monsterinsights-wooedd-upsell-right{width:50%;display:table-cell;float:left}.monsterinsights-wooedd-upsell-image{width:100%;height:auto;padding:20px}.monsterinsights-wooedd-upsell-image-small{display:none}.monsterinsights-wooedd-upsell-row{display:table}.monsterinsights-wooedd-upsell-left p{margin:1em 0;font-size:16px}@media (max-width:900px){.monsterinsights-wooedd-upsell-left{width:100%}.monsterinsights-wooedd-upsell-right{display:none}.monsterinsights-wooedd-upsell-image-small{display:block}.monsterinsights-wooedd-upsell-image-large{display:none}}</style>';
466
+	    return;
467
+	}
468 468
     }
469 469
 
470 470
     // 9. EDDUpsell
471 471
     if ( ! monsterinsights_is_pro_version() && class_exists( 'Easy_Digital_Downloads' ) ) {
472
-        if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) {
473
-            echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">';
474
-                echo '<div class="monsterinsights-wooedd-upsell-left">';
475
-                    echo '<p><strong>';
476
-                    echo esc_html( 'Enhanced Ecommerce Analytics for Your Easy Digital Downloads Store', 'google-analytics-for-wordpress' );
477
-                    echo '</strong></p>';
478
-                    echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
479
-                    echo '<p>';
480
-                    echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' );
481
-                    echo '</p>';
482
-                    echo '<p>';
483
-                    echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' );
484
-                    echo '</p>';
485
-                    echo '<p>';
486
-                    echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' );
487
-                    echo '</p>';
488
-                    echo '<p>';
489
-                    echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
490
-                    echo '</p>';
491
-                    echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' &raquo;</a>' );
492
-                    echo '</p>';
493
-                echo '</div><div class="monsterinsights-wooedd-upsell-right">';
494
-                    echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
495
-                echo '</div>';
496
-            echo '</div>';
497
-            return;
498
-        }
472
+	if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) {
473
+	    echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">';
474
+		echo '<div class="monsterinsights-wooedd-upsell-left">';
475
+		    echo '<p><strong>';
476
+		    echo esc_html( 'Enhanced Ecommerce Analytics for Your Easy Digital Downloads Store', 'google-analytics-for-wordpress' );
477
+		    echo '</strong></p>';
478
+		    echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
479
+		    echo '<p>';
480
+		    echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' );
481
+		    echo '</p>';
482
+		    echo '<p>';
483
+		    echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' );
484
+		    echo '</p>';
485
+		    echo '<p>';
486
+		    echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' );
487
+		    echo '</p>';
488
+		    echo '<p>';
489
+		    echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
490
+		    echo '</p>';
491
+		    echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' &raquo;</a>' );
492
+		    echo '</p>';
493
+		echo '</div><div class="monsterinsights-wooedd-upsell-right">';
494
+		    echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
495
+		echo '</div>';
496
+	    echo '</div>';
497
+	    return;
498
+	}
499 499
     }
500 500
 
501 501
     if ( isset( $notices['monsterinsights_cross_domains_extracted'] ) && false === $notices['monsterinsights_cross_domains_extracted'] ) {
502
-        $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
503
-        $page = $page . '#/advanced';
504
-        // Translators: Adds a link to the settings panel.
505
-        $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure.  %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' );
506
-        echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>'. $message.'</p></div>';
507
-        return;
502
+	$page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
503
+	$page = $page . '#/advanced';
504
+	// Translators: Adds a link to the settings panel.
505
+	$message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure.  %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' );
506
+	echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>'. $message.'</p></div>';
507
+	return;
508 508
     }
509 509
 }
510 510
 add_action( 'admin_notices', 'monsterinsights_admin_setup_notices' );
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
 // AM Notices
515 515
 function monsterinsights_am_notice_optout( $super_admin ) {
516 516
     if ( monsterinsights_get_option( 'hide_am_notices', false ) || monsterinsights_get_option( 'network_hide_am_notices', false ) ) {
517
-        return false;
517
+	return false;
518 518
     }
519 519
     return $super_admin;
520 520
 }
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
 
29 29
     if ( $hook === 'monsterinsights_settings' ) {
30 30
         // If dashboards disabled, first settings page
31
-        add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page',  $menu_icon_inline, '100.00013467543' );
31
+        add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' );
32 32
         $hook = 'monsterinsights_settings';
33 33
 
34 34
         add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' );
35 35
     } else {
36 36
         // if dashboards enabled, first dashboard
37
-        add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page',  $menu_icon_inline, '100.00013467543' );
37
+        add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' );
38 38
 
39 39
         add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' );
40 40
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     $menu_icon_inline = monsterinsights_get_inline_menu_icon();
92 92
     $hook = 'monsterinsights_network';
93 93
     $submenu_base = add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) );
94
-    add_menu_page( __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page',  $menu_icon_inline, '100.00013467543' );
94
+    add_menu_page( __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page', $menu_icon_inline, '100.00013467543' );
95 95
 
96 96
     add_submenu_page( $hook, __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Network Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page' );
97 97
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 function monsterinsights_add_admin_body_class_tools_page( $classes ) {
133 133
     $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
134 134
 
135
-    if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id  ) {
135
+    if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id ) {
136 136
         return $classes;
137 137
     }
138 138
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
  */
149 149
 function monsterinsights_add_admin_body_class_addons_page( $classes ) {
150 150
     $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
151
-    if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id  ) {
151
+    if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id ) {
152 152
         return $classes;
153 153
     }
154 154
 
@@ -164,21 +164,21 @@  discard block
 block discarded – undo
164 164
  * @return array $links
165 165
  */
166 166
 function monsterinsights_add_action_links( $links ) {
167
-    $docs = '<a title="' . esc_html__( 'MonsterInsights Knowledge Base', 'google-analytics-for-wordpress' ) . '" href="'. monsterinsights_get_url( 'all-plugins', 'kb-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Documentation', 'google-analytics-for-wordpress' ) . '</a>';
167
+    $docs = '<a title="' . esc_html__( 'MonsterInsights Knowledge Base', 'google-analytics-for-wordpress' ) . '" href="' . monsterinsights_get_url( 'all-plugins', 'kb-link', "https://www.monsterinsights.com/docs/" ) . '">' . esc_html__( 'Documentation', 'google-analytics-for-wordpress' ) . '</a>';
168 168
     array_unshift( $links, $docs );
169 169
 
170 170
     // If lite, show a link where they can get pro from
171 171
     if ( ! monsterinsights_is_pro_version() ) {
172
-        $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>';
172
+        $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '" href="' . monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) . '">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>';
173 173
         array_unshift( $links, $get_pro );
174 174
     }
175 175
 
176 176
     // If Lite, support goes to forum. If pro, it goes to our website
177 177
     if ( monsterinsights_is_pro_version() ) {
178
-        $support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
178
+        $support = '<a title="MonsterInsights Pro Support" href="' . monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) . '">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
179 179
         array_unshift( $links, $support );
180 180
     } else {
181
-        $support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
181
+        $support = '<a title="MonsterInsights Lite Support" href="' . monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) . '">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>';
182 182
         array_unshift( $links, $support );
183 183
     }
184 184
 
@@ -211,14 +211,14 @@  discard block
 block discarded – undo
211 211
         $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' );
212 212
 
213 213
         if ( file_exists( $dir . $template . '.php' ) ) {
214
-            require_once(  $dir . $template . '.php' );
214
+            require_once( $dir . $template . '.php' );
215 215
             return true;
216 216
         }
217 217
     } else {
218 218
         $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' );
219 219
 
220 220
         if ( file_exists( $dir . $template . '.php' ) ) {
221
-            require_once(  $dir . $template . '.php' );
221
+            require_once( $dir . $template . '.php' );
222 222
             return true;
223 223
         }
224 224
     }
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'includes/admin/partials' );
227 227
 
228 228
     if ( file_exists( $dir . $template . '.php' ) ) {
229
-        require_once(  $dir . $template . '.php' );
229
+        require_once( $dir . $template . '.php' );
230 230
         return true;
231 231
     }
232 232
 
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'monsterinsights' ) !== false ) {
247 247
         $url  = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5';
248 248
         // Translators: Placeholders add a link to the wordpress.org repository.
249
-        $text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' .  $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' );
249
+        $text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' );
250 250
     }
251 251
     return $text;
252 252
 }
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
         $secondary = esc_html__( 'Learn More', 'google-analytics-for-wordpress' );
288 288
         $urltwo    = $submenu_base . '#/about/getting-started';
289 289
         $message   = esc_html__( 'MonsterInsights, WordPress analytics plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 3 million website owners use MonsterInsights to see the stats that matter and grow their business.', 'google-analytics-for-wordpress' );
290
-        echo '<div class="notice notice-info"><p style="font-weight:700">'. $title .'</p><p>'. $message.'</p><p><a href="'. $urlone .'" class="button-primary">'. $primary .'</a>&nbsp;&nbsp;&nbsp;<a href="'. $urltwo .'" class="button-secondary">'. $secondary .'</a></p></div>';
290
+        echo '<div class="notice notice-info"><p style="font-weight:700">' . $title . '</p><p>' . $message . '</p><p><a href="' . $urlone . '" class="button-primary">' . $primary . '</a>&nbsp;&nbsp;&nbsp;<a href="' . $urltwo . '" class="button-secondary">' . $secondary . '</a></p></div>';
291 291
         return;
292 292
     }
293 293
 
@@ -296,18 +296,18 @@  discard block
 block discarded – undo
296 296
     if ( monsterinsights_is_pro_version() && empty( $key ) ) {
297 297
         $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
298 298
         // Translators: Adds a link to retrieve the license.
299
-        $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' );
300
-        echo '<div class="error"><p>'. $message.'</p></div>';
299
+        $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . esc_url( $page ) . '">', '</a>' );
300
+        echo '<div class="error"><p>' . $message . '</p></div>';
301 301
         return;
302 302
     }
303 303
 
304 304
     // 3. License key not valid/okay for pro
305 305
     if ( monsterinsights_is_pro_version() ) {
306 306
         $message = '';
307
-        if ( MonsterInsights()->license->get_site_license_key() ){
307
+        if ( MonsterInsights()->license->get_site_license_key() ) {
308 308
             if ( MonsterInsights()->license->site_license_expired() ) {
309 309
 	            // Translators: Adds a link to the license renewal.
310
-                $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
310
+                $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
311 311
             } else if ( MonsterInsights()->license->site_license_disabled() ) {
312 312
                 $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
313 313
             } else if ( MonsterInsights()->license->site_license_invalid() ) {
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
         } else if ( MonsterInsights()->license->get_network_license_key() ) {
317 317
             if ( MonsterInsights()->license->network_license_expired() ) {
318 318
             	// Translators: Adds a link to renew license.
319
-                $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
319
+                $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' );
320 320
             } else if ( MonsterInsights()->license->network_license_disabled() ) {
321 321
                 $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' );
322 322
             } else if ( MonsterInsights()->license->network_license_invalid() ) {
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
             }
325 325
         }
326 326
         if ( ! empty( $message ) ) {
327
-            echo '<div class="error"><p>'. $message.'</p></div>';
327
+            echo '<div class="error"><p>' . $message . '</p></div>';
328 328
             return;
329 329
         }
330 330
     }
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
             $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' );
339 339
             // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break.
340 340
             $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
341
-            echo '<div class="error"><p>'. $message.'</p></div>';
341
+            echo '<div class="error"><p>' . $message . '</p></div>';
342 342
             return;
343 343
         }
344 344
         // WordPress 3.0 - 4.5
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
             $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' );
347 347
             // Translators: Placeholders add the current WordPress version and links to the MonsterInsights blog
348 348
             $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in 2020.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' );
349
-            echo '<div class="error"><p>'. $message.'</p></div>';
349
+            echo '<div class="error"><p>' . $message . '</p></div>';
350 350
             return;
351 351
         }
352 352
         // PHP 5.4/5.5
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     //     }
391 391
     // }
392 392
 
393
-    $notices   = get_option( 'monsterinsights_notices' );
393
+    $notices = get_option( 'monsterinsights_notices' );
394 394
     if ( ! is_array( $notices ) ) {
395 395
         $notices = array();
396 396
     }
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 
437 437
     // 8. WooUpsell
438 438
     if ( ! monsterinsights_is_pro_version() && class_exists( 'WooCommerce' ) ) {
439
-        if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) {
439
+        if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available'] ) ) {
440 440
             echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">';
441 441
                 echo '<div class="monsterinsights-wooedd-upsell-left">';
442 442
                     echo '<p><strong>';
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
                     echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
457 457
                     echo '</p>';
458 458
                     // Translators: Placeholders add a link to the MonsterInsights website.
459
-                    echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' &raquo;</a>' );
459
+                    echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="' . monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) . '">', ' &raquo;</a>' );
460 460
                     echo '</p>';
461 461
                 echo '</div><div class="monsterinsights-wooedd-upsell-right">';
462 462
                     echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 
470 470
     // 9. EDDUpsell
471 471
     if ( ! monsterinsights_is_pro_version() && class_exists( 'Easy_Digital_Downloads' ) ) {
472
-        if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) {
472
+        if ( ! isset( $notices['monsterinsights_edd_tracking_available'] ) ) {
473 473
             echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">';
474 474
                 echo '<div class="monsterinsights-wooedd-upsell-left">';
475 475
                     echo '<p><strong>';
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
                     echo '<p>';
489 489
                     echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' );
490 490
                     echo '</p>';
491
-                    echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' &raquo;</a>' );
491
+                    echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="' . monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) . '">', ' &raquo;</a>' );
492 492
                     echo '</p>';
493 493
                 echo '</div><div class="monsterinsights-wooedd-upsell-right">';
494 494
                     echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">';
@@ -502,8 +502,8 @@  discard block
 block discarded – undo
502 502
         $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' );
503 503
         $page = $page . '#/advanced';
504 504
         // Translators: Adds a link to the settings panel.
505
-        $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure.  %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' );
506
-        echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>'. $message.'</p></div>';
505
+        $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure.  %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . esc_url( $page ) . '">', '</a>' );
506
+        echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>' . $message . '</p></div>';
507 507
         return;
508 508
     }
509 509
 }
Please login to merge, or discard this patch.
includes/admin/notifications.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 				( ! empty( $notification['end'] ) && time() > strtotime( $notification['end'] ) ) ||
233 233
 				( ! empty( $notification['type'] ) && ! in_array( $license_type, $notification['type'] ) )
234 234
 			) {
235
-				unset( $notifications[ $key ] );
235
+				unset( $notifications[$key] );
236 236
 			}
237 237
 		}
238 238
 
@@ -289,8 +289,8 @@  discard block
 block discarded – undo
289 289
 
290 290
 		foreach ( $notifications as $key => $notification ) {
291 291
 			if ( ! empty( $notification['content'] ) ) {
292
-				$notifications[ $key ]['content'] = wpautop( $notification['content'] );
293
-				$notifications[ $key ]['content'] = apply_filters( 'monsterinsights_notification_content_display', $notifications[ $key ]['content'] );
292
+				$notifications[$key]['content'] = wpautop( $notification['content'] );
293
+				$notifications[$key]['content'] = apply_filters( 'monsterinsights_notification_content_display', $notifications[$key]['content'] );
294 294
 			}
295 295
 		}
296 296
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 
317 317
 			// Translators: Readable time to display
318 318
 			$modified_start_time            = sprintf( __( '%1$s ago', 'google-analytics-for-wordpress' ), human_time_diff( strtotime( $notification['start'] ), current_time( 'timestamp' ) ) );
319
-			$notifications[ $key ]['start'] = $modified_start_time;
319
+			$notifications[$key]['start'] = $modified_start_time;
320 320
 		}
321 321
 
322 322
 		return $notifications;
@@ -446,13 +446,13 @@  discard block
 block discarded – undo
446 446
 			if ( is_array( $option['feed'] ) && ! empty( $option['feed'] ) ) {
447 447
 				foreach ( $option['feed'] as $key => $notification ) {
448 448
 					array_unshift( $option['dismissed'], $notification );
449
-					unset( $option['feed'][ $key ] );
449
+					unset( $option['feed'][$key] );
450 450
 				}
451 451
 			}
452 452
 			if ( is_array( $option['events'] ) && ! empty( $option['events'] ) ) {
453 453
 				foreach ( $option['events'] as $key => $notification ) {
454 454
 					array_unshift( $option['dismissed'], $notification );
455
-					unset( $option['events'][ $key ] );
455
+					unset( $option['events'][$key] );
456 456
 				}
457 457
 			}
458 458
 		}
@@ -460,13 +460,13 @@  discard block
 block discarded – undo
460 460
 		$type = is_numeric( $id ) ? 'feed' : 'events';
461 461
 
462 462
 		// Remove notification and add in dismissed array.
463
-		if ( is_array( $option[ $type ] ) && ! empty( $option[ $type ] ) ) {
464
-			foreach ( $option[ $type ] as $key => $notification ) {
463
+		if ( is_array( $option[$type] ) && ! empty( $option[$type] ) ) {
464
+			foreach ( $option[$type] as $key => $notification ) {
465 465
 				if ( $notification['id'] == $id ) { // phpcs:ignore WordPress.PHP.StrictComparisons
466 466
 					// Add notification to dismissed array.
467 467
 					array_unshift( $option['dismissed'], $notification );
468 468
 					// Remove notification from feed or events.
469
-					unset( $option[ $type ][ $key ] );
469
+					unset( $option[$type][$key] );
470 470
 					break;
471 471
 				}
472 472
 			}
@@ -515,8 +515,8 @@  discard block
 block discarded – undo
515 515
 	 *
516 516
 	 * @return string
517 517
 	 */
518
-	public function get_view_url( $scroll_to, $page, $tab='' ) {
519
-		$disabled   = monsterinsights_get_option( 'dashboards_disabled', false );
518
+	public function get_view_url( $scroll_to, $page, $tab = '' ) {
519
+		$disabled = monsterinsights_get_option( 'dashboards_disabled', false );
520 520
 
521 521
 		$url = add_query_arg( array(
522 522
 			'page' => $page,
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
 		), admin_url( 'admin.php' ) );
526 526
 
527 527
 		if ( ! empty( $tab ) ) {
528
-			$url .= '#/'. $tab;
528
+			$url .= '#/' . $tab;
529 529
 		}
530 530
 
531 531
 		if ( false !== $disabled ) {
Please login to merge, or discard this patch.
includes/admin/notification-event.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
 	 *
164 164
 	 * @return string
165 165
 	 */
166
-	public function get_view_url( $scroll_to, $page, $tab='' ) {
166
+	public function get_view_url( $scroll_to, $page, $tab = '' ) {
167 167
 		return MonsterInsights()->notifications->get_view_url( $scroll_to, $page, $tab );
168 168
 	}
169 169
 
Please login to merge, or discard this patch.
includes/frontend/tracking/class-tracking-gtag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -361,7 +361,7 @@
 block discarded – undo
361 361
 					<?php } ?>
362 362
 				} else {
363 363
 					<?php if ( $this->should_do_optout() ) { ?>
364
-					console.log( "<?php echo esc_js( $reason );?>" );
364
+					console.log( "<?php echo esc_js( $reason ); ?>" );
365 365
 					( function () {
366 366
 							function __gtagTracker() {
367 367
 								return null;
Please login to merge, or discard this patch.
includes/gutenberg/headline-tool/headline-tool.php 2 patches
Spacing   +638 added lines, -638 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 namespace MonsterInsightsHeadlineToolPlugin;
4 4
 
5 5
 // setup defines
6
-define ( 'MONSTERINSIGHTS_HEADLINE_TOOL_DIR_PATH', plugin_dir_path( __FILE__ ) );
6
+define( 'MONSTERINSIGHTS_HEADLINE_TOOL_DIR_PATH', plugin_dir_path( __FILE__ ) );
7 7
 
8 8
 /**
9 9
  * Headline Tool
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  * @since      0.1
12 12
  * @author     Debjit Saha
13 13
  */
14
-class MonsterInsightsHeadlineToolPlugin{
14
+class MonsterInsightsHeadlineToolPlugin {
15 15
 
16 16
 	/**
17 17
 	 * Class Variables.
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		// get whether or not the website is up
56 56
 		$result = $this->get_headline_scores();
57 57
 
58
-		if ( !empty( $result->err ) ) {
58
+		if ( ! empty( $result->err ) ) {
59 59
 			$content = self::output_template( 'results-error.php', $result );
60 60
 			wp_send_json_error(
61 61
 				array( 'html' => $content, 'analysed' => false )
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 			wp_send_json_success(
67 67
 				array(
68 68
 					'result' => $result,
69
-					'analysed' => !$result->err,
69
+					'analysed' => ! $result->err,
70 70
 					'sentence' => ucwords( wp_unslash( sanitize_text_field( $_REQUEST['q'] ) ) ),
71 71
 					'score' => ( isset( $result->score ) && ! empty( $result->score ) ) ? $result->score : 0
72 72
 				)
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	 */
82 82
 	function match_words( $sentence, $sentence_split, $words ) {
83 83
 		$ret = array();
84
-		foreach( $words as $wrd ) {
84
+		foreach ( $words as $wrd ) {
85 85
 			// check if $wrd is a phrase
86 86
 			if ( strpos( $wrd, ' ' ) !== false ) {
87 87
 				if ( strpos( $sentence, $wrd ) !== false ) {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 		$input = preg_replace( '/[^A-Za-z0-9 ]/', '', $input );
114 114
 
115 115
 		// strip whitespace
116
-		$input = preg_replace( '!\s+!', ' ', $input);
116
+		$input = preg_replace( '!\s+!', ' ', $input );
117 117
 
118 118
 		// lower case
119 119
 		$input = strtolower( $input );
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 		// bad input
124 124
 		if ( ! $input || $input == ' ' || trim( $input ) == '' ) {
125 125
 			$result->err = true;
126
-			$result->msg = __('Bad Input', 'google-analytics-for-wordpress');
126
+			$result->msg = __( 'Bad Input', 'google-analytics-for-wordpress' );
127 127
 			return $result;
128 128
 		}
129 129
 
@@ -167,28 +167,28 @@  discard block
 block discarded – undo
167 167
 		$result->common_words_per = count( $result->common_words ) / $result->word_count;
168 168
 		$result->uncommon_words = $this->match_words( $result->input, $result->input_array, $this->uncommon_words() );
169 169
 		$result->uncommon_words_per = count( $result->uncommon_words ) / $result->word_count;
170
-		$result->word_balance = __('Can Be Improved', 'google-analytics-for-wordpress');
170
+		$result->word_balance = __( 'Can Be Improved', 'google-analytics-for-wordpress' );
171 171
 		$result->word_balance_use = array();
172 172
 
173 173
 		if ( $result->emotion_words_per < 0.1 ) {
174
-			$result->word_balance_use[] = __('emotion', 'google-analytics-for-wordpress');
174
+			$result->word_balance_use[] = __( 'emotion', 'google-analytics-for-wordpress' );
175 175
 		} else {
176 176
 			$scoret = $scoret + 15;
177 177
 		}
178 178
 
179 179
 		if ( $result->common_words_per < 0.2 ) {
180
-			$result->word_balance_use[] = __('common', 'google-analytics-for-wordpress');
180
+			$result->word_balance_use[] = __( 'common', 'google-analytics-for-wordpress' );
181 181
 		} else {
182 182
 			$scoret = $scoret + 11;
183 183
 		}
184 184
 
185 185
 		if ( $result->uncommon_words_per < 0.1 ) {
186
-			$result->word_balance_use[] = __('uncommon', 'google-analytics-for-wordpress');
186
+			$result->word_balance_use[] = __( 'uncommon', 'google-analytics-for-wordpress' );
187 187
 		} else
188 188
 			$scoret = $scoret + 15;
189 189
 
190 190
 		if ( count( $result->power_words ) < 1 ) {
191
-			$result->word_balance_use[] = __('power', 'google-analytics-for-wordpress');
191
+			$result->word_balance_use[] = __( 'power', 'google-analytics-for-wordpress' );
192 192
 		} else {
193 193
 			$scoret = $scoret + 19;
194 194
 		}
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 			$result->common_words_per >= 0.2 &&
199 199
 			$result->uncommon_words_per >= 0.1 &&
200 200
 			count( $result->power_words ) >= 1 ) {
201
-			$result->word_balance = __('Perfect', 'google-analytics-for-wordpress');
201
+			$result->word_balance = __( 'Perfect', 'google-analytics-for-wordpress' );
202 202
 			$scoret = $scoret + 3;
203 203
 		}
204 204
 
@@ -217,77 +217,77 @@  discard block
 block discarded – undo
217 217
 		$headline_types = array();
218 218
 
219 219
 		// HDL type: how to, how-to, howto
220
-		if ( strpos( $input, __('how to', 'google-analytics-for-wordpress') ) !== false || strpos( $input, __('howto', 'google-analytics-for-wordpress') ) !== false ) {
221
-			$headline_types[] = __('How-To', 'google-analytics-for-wordpress');
220
+		if ( strpos( $input, __( 'how to', 'google-analytics-for-wordpress' ) ) !== false || strpos( $input, __( 'howto', 'google-analytics-for-wordpress' ) ) !== false ) {
221
+			$headline_types[] = __( 'How-To', 'google-analytics-for-wordpress' );
222 222
 			$scoret = $scoret + 7;
223 223
 		}
224 224
 
225 225
 		// HDL type: numbers - numeric and alpha
226 226
 		$num_quantifiers = array(
227
-			__('one', 'google-analytics-for-wordpress'),
228
-			__('two', 'google-analytics-for-wordpress'),
229
-			__('three', 'google-analytics-for-wordpress'),
230
-			__('four', 'google-analytics-for-wordpress'),
231
-			__('five', 'google-analytics-for-wordpress'),
232
-			__('six', 'google-analytics-for-wordpress'),
233
-			__('seven', 'google-analytics-for-wordpress'),
234
-			__('eight', 'google-analytics-for-wordpress'),
235
-			__('nine', 'google-analytics-for-wordpress'),
236
-			__('eleven', 'google-analytics-for-wordpress'),
237
-			__('twelve', 'google-analytics-for-wordpress'),
238
-			__('thirt', 'google-analytics-for-wordpress'),
239
-			__('fift', 'google-analytics-for-wordpress'),
240
-			__('hundred', 'google-analytics-for-wordpress'),
241
-			__('thousand', 'google-analytics-for-wordpress'),
227
+			__( 'one', 'google-analytics-for-wordpress' ),
228
+			__( 'two', 'google-analytics-for-wordpress' ),
229
+			__( 'three', 'google-analytics-for-wordpress' ),
230
+			__( 'four', 'google-analytics-for-wordpress' ),
231
+			__( 'five', 'google-analytics-for-wordpress' ),
232
+			__( 'six', 'google-analytics-for-wordpress' ),
233
+			__( 'seven', 'google-analytics-for-wordpress' ),
234
+			__( 'eight', 'google-analytics-for-wordpress' ),
235
+			__( 'nine', 'google-analytics-for-wordpress' ),
236
+			__( 'eleven', 'google-analytics-for-wordpress' ),
237
+			__( 'twelve', 'google-analytics-for-wordpress' ),
238
+			__( 'thirt', 'google-analytics-for-wordpress' ),
239
+			__( 'fift', 'google-analytics-for-wordpress' ),
240
+			__( 'hundred', 'google-analytics-for-wordpress' ),
241
+			__( 'thousand', 'google-analytics-for-wordpress' ),
242 242
 		);
243 243
 
244 244
 		$list_words = array_intersect( $input_array, $num_quantifiers );
245 245
 		if ( preg_match( '~[0-9]+~', $input ) || ! empty ( $list_words ) ) {
246
-			$headline_types[] = __('List', 'google-analytics-for-wordpress');
246
+			$headline_types[] = __( 'List', 'google-analytics-for-wordpress' );
247 247
 			$scoret = $scoret + 7;
248 248
 		}
249 249
 
250 250
 		// HDL type: Question
251 251
 		$qn_quantifiers = array(
252
-			__('where', 'google-analytics-for-wordpress'),
253
-			__('when', 'google-analytics-for-wordpress'),
254
-			__('how', 'google-analytics-for-wordpress'),
255
-			__('what', 'google-analytics-for-wordpress'),
256
-			__('have', 'google-analytics-for-wordpress'),
257
-			__('has', 'google-analytics-for-wordpress'),
258
-			__('does', 'google-analytics-for-wordpress'),
259
-			__('do', 'google-analytics-for-wordpress'),
260
-			__('can', 'google-analytics-for-wordpress'),
261
-			__('are', 'google-analytics-for-wordpress'),
262
-			__('will', 'google-analytics-for-wordpress'),
252
+			__( 'where', 'google-analytics-for-wordpress' ),
253
+			__( 'when', 'google-analytics-for-wordpress' ),
254
+			__( 'how', 'google-analytics-for-wordpress' ),
255
+			__( 'what', 'google-analytics-for-wordpress' ),
256
+			__( 'have', 'google-analytics-for-wordpress' ),
257
+			__( 'has', 'google-analytics-for-wordpress' ),
258
+			__( 'does', 'google-analytics-for-wordpress' ),
259
+			__( 'do', 'google-analytics-for-wordpress' ),
260
+			__( 'can', 'google-analytics-for-wordpress' ),
261
+			__( 'are', 'google-analytics-for-wordpress' ),
262
+			__( 'will', 'google-analytics-for-wordpress' ),
263 263
 		);
264 264
 		$qn_quantifiers_sub = array(
265
-			__('you', 'google-analytics-for-wordpress'),
266
-			__('they', 'google-analytics-for-wordpress'),
267
-			__('he', 'google-analytics-for-wordpress'),
268
-			__('she', 'google-analytics-for-wordpress'),
269
-			__('your', 'google-analytics-for-wordpress'),
270
-			__('it', 'google-analytics-for-wordpress'),
271
-			__('they', 'google-analytics-for-wordpress'),
272
-			__('my', 'google-analytics-for-wordpress'),
273
-			__('have', 'google-analytics-for-wordpress'),
274
-			__('has', 'google-analytics-for-wordpress'),
275
-			__('does', 'google-analytics-for-wordpress'),
276
-			__('do', 'google-analytics-for-wordpress'),
277
-			__('can', 'google-analytics-for-wordpress'),
278
-			__('are', 'google-analytics-for-wordpress'),
279
-			__('will', 'google-analytics-for-wordpress'),
265
+			__( 'you', 'google-analytics-for-wordpress' ),
266
+			__( 'they', 'google-analytics-for-wordpress' ),
267
+			__( 'he', 'google-analytics-for-wordpress' ),
268
+			__( 'she', 'google-analytics-for-wordpress' ),
269
+			__( 'your', 'google-analytics-for-wordpress' ),
270
+			__( 'it', 'google-analytics-for-wordpress' ),
271
+			__( 'they', 'google-analytics-for-wordpress' ),
272
+			__( 'my', 'google-analytics-for-wordpress' ),
273
+			__( 'have', 'google-analytics-for-wordpress' ),
274
+			__( 'has', 'google-analytics-for-wordpress' ),
275
+			__( 'does', 'google-analytics-for-wordpress' ),
276
+			__( 'do', 'google-analytics-for-wordpress' ),
277
+			__( 'can', 'google-analytics-for-wordpress' ),
278
+			__( 'are', 'google-analytics-for-wordpress' ),
279
+			__( 'will', 'google-analytics-for-wordpress' ),
280 280
 		);
281 281
 		if ( in_array( $input_array[0], $qn_quantifiers ) ) {
282 282
 			if ( in_array( $input_array[1], $qn_quantifiers_sub ) ) {
283
-				$headline_types[] = __('Question', 'google-analytics-for-wordpress');
283
+				$headline_types[] = __( 'Question', 'google-analytics-for-wordpress' );
284 284
 				$scoret = $scoret + 7;
285 285
 			}
286 286
 		}
287 287
 
288 288
 		// General headline type
289 289
 		if ( empty( $headline_types ) ) {
290
-			$headline_types[] = __('General', 'google-analytics-for-wordpress');
290
+			$headline_types[] = __( 'General', 'google-analytics-for-wordpress' );
291 291
 			$scoret = $scoret + 5;
292 292
 		}
293 293
 
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 		} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
335 335
 			//to check ip is pass from proxy
336 336
 			$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
337
-		} elseif( ! empty( $_SERVER['REMOTE_ADDR'] ) ) {
337
+		} elseif ( ! empty( $_SERVER['REMOTE_ADDR'] ) ) {
338 338
 			$ip = $_SERVER['REMOTE_ADDR'];
339 339
 		}
340 340
 
@@ -356,287 +356,287 @@  discard block
 block discarded – undo
356 356
 		}
357 357
 
358 358
 		$this->emotion_power_words = array(
359
-			__("destroy", "google-analytics-for-wordpress"),
360
-			__("extra", "google-analytics-for-wordpress"),
361
-			__("in a", "google-analytics-for-wordpress"),
362
-			__("devastating", "google-analytics-for-wordpress"),
363
-			__("eye-opening", "google-analytics-for-wordpress"),
364
-			__("gift", "google-analytics-for-wordpress"),
365
-			__("in the world", "google-analytics-for-wordpress"),
366
-			__("devoted", "google-analytics-for-wordpress"),
367
-			__("fail", "google-analytics-for-wordpress"),
368
-			__("in the", "google-analytics-for-wordpress"),
369
-			__("faith", "google-analytics-for-wordpress"),
370
-			__("grateful", "google-analytics-for-wordpress"),
371
-			__("inexpensive", "google-analytics-for-wordpress"),
372
-			__("dirty", "google-analytics-for-wordpress"),
373
-			__("famous", "google-analytics-for-wordpress"),
374
-			__("disastrous", "google-analytics-for-wordpress"),
375
-			__("fantastic", "google-analytics-for-wordpress"),
376
-			__("greed", "google-analytics-for-wordpress"),
377
-			__("grit", "google-analytics-for-wordpress"),
378
-			__("insanely", "google-analytics-for-wordpress"),
379
-			__("disgusting", "google-analytics-for-wordpress"),
380
-			__("fearless", "google-analytics-for-wordpress"),
381
-			__("disinformation", "google-analytics-for-wordpress"),
382
-			__("feast", "google-analytics-for-wordpress"),
383
-			__("insidious", "google-analytics-for-wordpress"),
384
-			__("dollar", "google-analytics-for-wordpress"),
385
-			__("feeble", "google-analytics-for-wordpress"),
386
-			__("gullible", "google-analytics-for-wordpress"),
387
-			__("double", "google-analytics-for-wordpress"),
388
-			__("fire", "google-analytics-for-wordpress"),
389
-			__("hack", "google-analytics-for-wordpress"),
390
-			__("fleece", "google-analytics-for-wordpress"),
391
-			__("had enough", "google-analytics-for-wordpress"),
392
-			__("invasion", "google-analytics-for-wordpress"),
393
-			__("drowning", "google-analytics-for-wordpress"),
394
-			__("floundering", "google-analytics-for-wordpress"),
395
-			__("happy", "google-analytics-for-wordpress"),
396
-			__("ironclad", "google-analytics-for-wordpress"),
397
-			__("dumb", "google-analytics-for-wordpress"),
398
-			__("flush", "google-analytics-for-wordpress"),
399
-			__("hate", "google-analytics-for-wordpress"),
400
-			__("irresistibly", "google-analytics-for-wordpress"),
401
-			__("hazardous", "google-analytics-for-wordpress"),
402
-			__("is the", "google-analytics-for-wordpress"),
403
-			__("fool", "google-analytics-for-wordpress"),
404
-			__("is what happens when", "google-analytics-for-wordpress"),
405
-			__("fooled", "google-analytics-for-wordpress"),
406
-			__("helpless", "google-analytics-for-wordpress"),
407
-			__("it looks like a", "google-analytics-for-wordpress"),
408
-			__("embarrass", "google-analytics-for-wordpress"),
409
-			__("for the first time", "google-analytics-for-wordpress"),
410
-			__("help are the", "google-analytics-for-wordpress"),
411
-			__("jackpot", "google-analytics-for-wordpress"),
412
-			__("forbidden", "google-analytics-for-wordpress"),
413
-			__("hidden", "google-analytics-for-wordpress"),
414
-			__("jail", "google-analytics-for-wordpress"),
415
-			__("empower", "google-analytics-for-wordpress"),
416
-			__("force-fed", "google-analytics-for-wordpress"),
417
-			__("high", "google-analytics-for-wordpress"),
418
-			__("jaw-dropping", "google-analytics-for-wordpress"),
419
-			__("forgotten", "google-analytics-for-wordpress"),
420
-			__("jeopardy", "google-analytics-for-wordpress"),
421
-			__("energize", "google-analytics-for-wordpress"),
422
-			__("hoax", "google-analytics-for-wordpress"),
423
-			__("jubilant", "google-analytics-for-wordpress"),
424
-			__("foul", "google-analytics-for-wordpress"),
425
-			__("hope", "google-analytics-for-wordpress"),
426
-			__("killer", "google-analytics-for-wordpress"),
427
-			__("frantic", "google-analytics-for-wordpress"),
428
-			__("horrific", "google-analytics-for-wordpress"),
429
-			__("know it all", "google-analytics-for-wordpress"),
430
-			__("epic", "google-analytics-for-wordpress"),
431
-			__("how to make", "google-analytics-for-wordpress"),
432
-			__("evil", "google-analytics-for-wordpress"),
433
-			__("freebie", "google-analytics-for-wordpress"),
434
-			__("frenzy", "google-analytics-for-wordpress"),
435
-			__("hurricane", "google-analytics-for-wordpress"),
436
-			__("excited", "google-analytics-for-wordpress"),
437
-			__("fresh on the mind", "google-analytics-for-wordpress"),
438
-			__("frightening", "google-analytics-for-wordpress"),
439
-			__("hypnotic", "google-analytics-for-wordpress"),
440
-			__("lawsuit", "google-analytics-for-wordpress"),
441
-			__("frugal", "google-analytics-for-wordpress"),
442
-			__("illegal", "google-analytics-for-wordpress"),
443
-			__("fulfill", "google-analytics-for-wordpress"),
444
-			__("lick", "google-analytics-for-wordpress"),
445
-			__("explode", "google-analytics-for-wordpress"),
446
-			__("lies", "google-analytics-for-wordpress"),
447
-			__("exposed", "google-analytics-for-wordpress"),
448
-			__("gambling", "google-analytics-for-wordpress"),
449
-			__("like a normal", "google-analytics-for-wordpress"),
450
-			__("nightmare", "google-analytics-for-wordpress"),
451
-			__("results", "google-analytics-for-wordpress"),
452
-			__("line", "google-analytics-for-wordpress"),
453
-			__("no good", "google-analytics-for-wordpress"),
454
-			__("pound", "google-analytics-for-wordpress"),
455
-			__("loathsome", "google-analytics-for-wordpress"),
456
-			__("no questions asked", "google-analytics-for-wordpress"),
457
-			__("revenge", "google-analytics-for-wordpress"),
458
-			__("lonely", "google-analytics-for-wordpress"),
459
-			__("looks like a", "google-analytics-for-wordpress"),
460
-			__("obnoxious", "google-analytics-for-wordpress"),
461
-			__("preposterous", "google-analytics-for-wordpress"),
462
-			__("revolting", "google-analytics-for-wordpress"),
463
-			__("looming", "google-analytics-for-wordpress"),
464
-			__("priced", "google-analytics-for-wordpress"),
465
-			__("lost", "google-analytics-for-wordpress"),
466
-			__("prison", "google-analytics-for-wordpress"),
467
-			__("lowest", "google-analytics-for-wordpress"),
468
-			__("of the", "google-analytics-for-wordpress"),
469
-			__("privacy", "google-analytics-for-wordpress"),
470
-			__("rich", "google-analytics-for-wordpress"),
471
-			__("lunatic", "google-analytics-for-wordpress"),
472
-			__("off-limits", "google-analytics-for-wordpress"),
473
-			__("private", "google-analytics-for-wordpress"),
474
-			__("risky", "google-analytics-for-wordpress"),
475
-			__("lurking", "google-analytics-for-wordpress"),
476
-			__("offer", "google-analytics-for-wordpress"),
477
-			__("prize", "google-analytics-for-wordpress"),
478
-			__("ruthless", "google-analytics-for-wordpress"),
479
-			__("lust", "google-analytics-for-wordpress"),
480
-			__("official", "google-analytics-for-wordpress"),
481
-			__("luxurious", "google-analytics-for-wordpress"),
482
-			__("on the", "google-analytics-for-wordpress"),
483
-			__("profit", "google-analytics-for-wordpress"),
484
-			__("scary", "google-analytics-for-wordpress"),
485
-			__("lying", "google-analytics-for-wordpress"),
486
-			__("outlawed", "google-analytics-for-wordpress"),
487
-			__("protected", "google-analytics-for-wordpress"),
488
-			__("scream", "google-analytics-for-wordpress"),
489
-			__("searing", "google-analytics-for-wordpress"),
490
-			__("overcome", "google-analytics-for-wordpress"),
491
-			__("provocative", "google-analytics-for-wordpress"),
492
-			__("make you", "google-analytics-for-wordpress"),
493
-			__("painful", "google-analytics-for-wordpress"),
494
-			__("pummel", "google-analytics-for-wordpress"),
495
-			__("secure", "google-analytics-for-wordpress"),
496
-			__("pale", "google-analytics-for-wordpress"),
497
-			__("punish", "google-analytics-for-wordpress"),
498
-			__("marked down", "google-analytics-for-wordpress"),
499
-			__("panic", "google-analytics-for-wordpress"),
500
-			__("quadruple", "google-analytics-for-wordpress"),
501
-			__("secutively", "google-analytics-for-wordpress"),
502
-			__("massive", "google-analytics-for-wordpress"),
503
-			__("pay zero", "google-analytics-for-wordpress"),
504
-			__("seize", "google-analytics-for-wordpress"),
505
-			__("meltdown", "google-analytics-for-wordpress"),
506
-			__("payback", "google-analytics-for-wordpress"),
507
-			__("might look like a", "google-analytics-for-wordpress"),
508
-			__("peril", "google-analytics-for-wordpress"),
509
-			__("mind-blowing", "google-analytics-for-wordpress"),
510
-			__("shameless", "google-analytics-for-wordpress"),
511
-			__("minute", "google-analytics-for-wordpress"),
512
-			__("rave", "google-analytics-for-wordpress"),
513
-			__("shatter", "google-analytics-for-wordpress"),
514
-			__("piranha", "google-analytics-for-wordpress"),
515
-			__("reckoning", "google-analytics-for-wordpress"),
516
-			__("shellacking", "google-analytics-for-wordpress"),
517
-			__("mired", "google-analytics-for-wordpress"),
518
-			__("pitfall", "google-analytics-for-wordpress"),
519
-			__("reclaim", "google-analytics-for-wordpress"),
520
-			__("mistakes", "google-analytics-for-wordpress"),
521
-			__("plague", "google-analytics-for-wordpress"),
522
-			__("sick and tired", "google-analytics-for-wordpress"),
523
-			__("money", "google-analytics-for-wordpress"),
524
-			__("played", "google-analytics-for-wordpress"),
525
-			__("refugee", "google-analytics-for-wordpress"),
526
-			__("silly", "google-analytics-for-wordpress"),
527
-			__("money-grubbing", "google-analytics-for-wordpress"),
528
-			__("pluck", "google-analytics-for-wordpress"),
529
-			__("refund", "google-analytics-for-wordpress"),
530
-			__("moneyback", "google-analytics-for-wordpress"),
531
-			__("plummet", "google-analytics-for-wordpress"),
532
-			__("plunge", "google-analytics-for-wordpress"),
533
-			__("murder", "google-analytics-for-wordpress"),
534
-			__("pointless", "google-analytics-for-wordpress"),
535
-			__("sinful", "google-analytics-for-wordpress"),
536
-			__("myths", "google-analytics-for-wordpress"),
537
-			__("poor", "google-analytics-for-wordpress"),
538
-			__("remarkably", "google-analytics-for-wordpress"),
539
-			__("six-figure", "google-analytics-for-wordpress"),
540
-			__("never again", "google-analytics-for-wordpress"),
541
-			__("research", "google-analytics-for-wordpress"),
542
-			__("surrender", "google-analytics-for-wordpress"),
543
-			__("to the", "google-analytics-for-wordpress"),
544
-			__("varify", "google-analytics-for-wordpress"),
545
-			__("skyrocket", "google-analytics-for-wordpress"),
546
-			__("toxic", "google-analytics-for-wordpress"),
547
-			__("vibrant", "google-analytics-for-wordpress"),
548
-			__("slaughter", "google-analytics-for-wordpress"),
549
-			__("swindle", "google-analytics-for-wordpress"),
550
-			__("trap", "google-analytics-for-wordpress"),
551
-			__("victim", "google-analytics-for-wordpress"),
552
-			__("sleazy", "google-analytics-for-wordpress"),
553
-			__("taboo", "google-analytics-for-wordpress"),
554
-			__("treasure", "google-analytics-for-wordpress"),
555
-			__("victory", "google-analytics-for-wordpress"),
556
-			__("smash", "google-analytics-for-wordpress"),
557
-			__("tailspin", "google-analytics-for-wordpress"),
558
-			__("vindication", "google-analytics-for-wordpress"),
559
-			__("smug", "google-analytics-for-wordpress"),
560
-			__("tank", "google-analytics-for-wordpress"),
561
-			__("triple", "google-analytics-for-wordpress"),
562
-			__("viral", "google-analytics-for-wordpress"),
563
-			__("smuggled", "google-analytics-for-wordpress"),
564
-			__("tantalizing", "google-analytics-for-wordpress"),
565
-			__("triumph", "google-analytics-for-wordpress"),
566
-			__("volatile", "google-analytics-for-wordpress"),
567
-			__("sniveling", "google-analytics-for-wordpress"),
568
-			__("targeted", "google-analytics-for-wordpress"),
569
-			__("truth", "google-analytics-for-wordpress"),
570
-			__("vulnerable", "google-analytics-for-wordpress"),
571
-			__("snob", "google-analytics-for-wordpress"),
572
-			__("tawdry", "google-analytics-for-wordpress"),
573
-			__("try before you buy", "google-analytics-for-wordpress"),
574
-			__("tech", "google-analytics-for-wordpress"),
575
-			__("turn the tables", "google-analytics-for-wordpress"),
576
-			__("wanton", "google-analytics-for-wordpress"),
577
-			__("soaring", "google-analytics-for-wordpress"),
578
-			__("warning", "google-analytics-for-wordpress"),
579
-			__("teetering", "google-analytics-for-wordpress"),
580
-			__("unauthorized", "google-analytics-for-wordpress"),
581
-			__("spectacular", "google-analytics-for-wordpress"),
582
-			__("temporary fix", "google-analytics-for-wordpress"),
583
-			__("unbelievably", "google-analytics-for-wordpress"),
584
-			__("spine", "google-analytics-for-wordpress"),
585
-			__("tempting", "google-analytics-for-wordpress"),
586
-			__("uncommonly", "google-analytics-for-wordpress"),
587
-			__("what happened", "google-analytics-for-wordpress"),
588
-			__("spirit", "google-analytics-for-wordpress"),
589
-			__("what happens when", "google-analytics-for-wordpress"),
590
-			__("terror", "google-analytics-for-wordpress"),
591
-			__("under", "google-analytics-for-wordpress"),
592
-			__("what happens", "google-analytics-for-wordpress"),
593
-			__("staggering", "google-analytics-for-wordpress"),
594
-			__("underhanded", "google-analytics-for-wordpress"),
595
-			__("what this", "google-analytics-for-wordpress"),
596
-			__("that will make you", "google-analytics-for-wordpress"),
597
-			__("undo","when you see", "google-analytics-for-wordpress"),
598
-			__("that will make", "google-analytics-for-wordpress"),
599
-			__("unexpected", "google-analytics-for-wordpress"),
600
-			__("when you", "google-analytics-for-wordpress"),
601
-			__("strangle", "google-analytics-for-wordpress"),
602
-			__("that will", "google-analytics-for-wordpress"),
603
-			__("whip", "google-analytics-for-wordpress"),
604
-			__("the best", "google-analytics-for-wordpress"),
605
-			__("whopping", "google-analytics-for-wordpress"),
606
-			__("stuck up", "google-analytics-for-wordpress"),
607
-			__("the ranking of", "google-analytics-for-wordpress"),
608
-			__("wicked", "google-analytics-for-wordpress"),
609
-			__("stunning", "google-analytics-for-wordpress"),
610
-			__("the most", "google-analytics-for-wordpress"),
611
-			__("will make you", "google-analytics-for-wordpress"),
612
-			__("stupid", "google-analytics-for-wordpress"),
613
-			__("the reason why is", "google-analytics-for-wordpress"),
614
-			__("unscrupulous", "google-analytics-for-wordpress"),
615
-			__("thing ive ever seen", "google-analytics-for-wordpress"),
616
-			__("withheld", "google-analytics-for-wordpress"),
617
-			__("this is the", "google-analytics-for-wordpress"),
618
-			__("this is what happens", "google-analytics-for-wordpress"),
619
-			__("unusually", "google-analytics-for-wordpress"),
620
-			__("wondrous", "google-analytics-for-wordpress"),
621
-			__("this is what", "google-analytics-for-wordpress"),
622
-			__("uplifting", "google-analytics-for-wordpress"),
623
-			__("worry", "google-analytics-for-wordpress"),
624
-			__("sure", "google-analytics-for-wordpress"),
625
-			__("this is", "google-analytics-for-wordpress"),
626
-			__("wounded", "google-analytics-for-wordpress"),
627
-			__("surge", "google-analytics-for-wordpress"),
628
-			__("thrilled", "google-analytics-for-wordpress"),
629
-			__("you need to know", "google-analytics-for-wordpress"),
630
-			__("thrilling", "google-analytics-for-wordpress"),
631
-			__("valor", "google-analytics-for-wordpress"),
632
-			__("you need to", "google-analytics-for-wordpress"),
633
-			__("you see what", "google-analytics-for-wordpress"),
634
-			__("surprising", "google-analytics-for-wordpress"),
635
-			__("tired", "google-analytics-for-wordpress"),
636
-			__("you see", "google-analytics-for-wordpress"),
637
-			__("surprisingly", "google-analytics-for-wordpress"),
638
-			__("to be", "google-analytics-for-wordpress"),
639
-			__("vaporize", "google-analytics-for-wordpress"),
359
+			__( "destroy", "google-analytics-for-wordpress" ),
360
+			__( "extra", "google-analytics-for-wordpress" ),
361
+			__( "in a", "google-analytics-for-wordpress" ),
362
+			__( "devastating", "google-analytics-for-wordpress" ),
363
+			__( "eye-opening", "google-analytics-for-wordpress" ),
364
+			__( "gift", "google-analytics-for-wordpress" ),
365
+			__( "in the world", "google-analytics-for-wordpress" ),
366
+			__( "devoted", "google-analytics-for-wordpress" ),
367
+			__( "fail", "google-analytics-for-wordpress" ),
368
+			__( "in the", "google-analytics-for-wordpress" ),
369
+			__( "faith", "google-analytics-for-wordpress" ),
370
+			__( "grateful", "google-analytics-for-wordpress" ),
371
+			__( "inexpensive", "google-analytics-for-wordpress" ),
372
+			__( "dirty", "google-analytics-for-wordpress" ),
373
+			__( "famous", "google-analytics-for-wordpress" ),
374
+			__( "disastrous", "google-analytics-for-wordpress" ),
375
+			__( "fantastic", "google-analytics-for-wordpress" ),
376
+			__( "greed", "google-analytics-for-wordpress" ),
377
+			__( "grit", "google-analytics-for-wordpress" ),
378
+			__( "insanely", "google-analytics-for-wordpress" ),
379
+			__( "disgusting", "google-analytics-for-wordpress" ),
380
+			__( "fearless", "google-analytics-for-wordpress" ),
381
+			__( "disinformation", "google-analytics-for-wordpress" ),
382
+			__( "feast", "google-analytics-for-wordpress" ),
383
+			__( "insidious", "google-analytics-for-wordpress" ),
384
+			__( "dollar", "google-analytics-for-wordpress" ),
385
+			__( "feeble", "google-analytics-for-wordpress" ),
386
+			__( "gullible", "google-analytics-for-wordpress" ),
387
+			__( "double", "google-analytics-for-wordpress" ),
388
+			__( "fire", "google-analytics-for-wordpress" ),
389
+			__( "hack", "google-analytics-for-wordpress" ),
390
+			__( "fleece", "google-analytics-for-wordpress" ),
391
+			__( "had enough", "google-analytics-for-wordpress" ),
392
+			__( "invasion", "google-analytics-for-wordpress" ),
393
+			__( "drowning", "google-analytics-for-wordpress" ),
394
+			__( "floundering", "google-analytics-for-wordpress" ),
395
+			__( "happy", "google-analytics-for-wordpress" ),
396
+			__( "ironclad", "google-analytics-for-wordpress" ),
397
+			__( "dumb", "google-analytics-for-wordpress" ),
398
+			__( "flush", "google-analytics-for-wordpress" ),
399
+			__( "hate", "google-analytics-for-wordpress" ),
400
+			__( "irresistibly", "google-analytics-for-wordpress" ),
401
+			__( "hazardous", "google-analytics-for-wordpress" ),
402
+			__( "is the", "google-analytics-for-wordpress" ),
403
+			__( "fool", "google-analytics-for-wordpress" ),
404
+			__( "is what happens when", "google-analytics-for-wordpress" ),
405
+			__( "fooled", "google-analytics-for-wordpress" ),
406
+			__( "helpless", "google-analytics-for-wordpress" ),
407
+			__( "it looks like a", "google-analytics-for-wordpress" ),
408
+			__( "embarrass", "google-analytics-for-wordpress" ),
409
+			__( "for the first time", "google-analytics-for-wordpress" ),
410
+			__( "help are the", "google-analytics-for-wordpress" ),
411
+			__( "jackpot", "google-analytics-for-wordpress" ),
412
+			__( "forbidden", "google-analytics-for-wordpress" ),
413
+			__( "hidden", "google-analytics-for-wordpress" ),
414
+			__( "jail", "google-analytics-for-wordpress" ),
415
+			__( "empower", "google-analytics-for-wordpress" ),
416
+			__( "force-fed", "google-analytics-for-wordpress" ),
417
+			__( "high", "google-analytics-for-wordpress" ),
418
+			__( "jaw-dropping", "google-analytics-for-wordpress" ),
419
+			__( "forgotten", "google-analytics-for-wordpress" ),
420
+			__( "jeopardy", "google-analytics-for-wordpress" ),
421
+			__( "energize", "google-analytics-for-wordpress" ),
422
+			__( "hoax", "google-analytics-for-wordpress" ),
423
+			__( "jubilant", "google-analytics-for-wordpress" ),
424
+			__( "foul", "google-analytics-for-wordpress" ),
425
+			__( "hope", "google-analytics-for-wordpress" ),
426
+			__( "killer", "google-analytics-for-wordpress" ),
427
+			__( "frantic", "google-analytics-for-wordpress" ),
428
+			__( "horrific", "google-analytics-for-wordpress" ),
429
+			__( "know it all", "google-analytics-for-wordpress" ),
430
+			__( "epic", "google-analytics-for-wordpress" ),
431
+			__( "how to make", "google-analytics-for-wordpress" ),
432
+			__( "evil", "google-analytics-for-wordpress" ),
433
+			__( "freebie", "google-analytics-for-wordpress" ),
434
+			__( "frenzy", "google-analytics-for-wordpress" ),
435
+			__( "hurricane", "google-analytics-for-wordpress" ),
436
+			__( "excited", "google-analytics-for-wordpress" ),
437
+			__( "fresh on the mind", "google-analytics-for-wordpress" ),
438
+			__( "frightening", "google-analytics-for-wordpress" ),
439
+			__( "hypnotic", "google-analytics-for-wordpress" ),
440
+			__( "lawsuit", "google-analytics-for-wordpress" ),
441
+			__( "frugal", "google-analytics-for-wordpress" ),
442
+			__( "illegal", "google-analytics-for-wordpress" ),
443
+			__( "fulfill", "google-analytics-for-wordpress" ),
444
+			__( "lick", "google-analytics-for-wordpress" ),
445
+			__( "explode", "google-analytics-for-wordpress" ),
446
+			__( "lies", "google-analytics-for-wordpress" ),
447
+			__( "exposed", "google-analytics-for-wordpress" ),
448
+			__( "gambling", "google-analytics-for-wordpress" ),
449
+			__( "like a normal", "google-analytics-for-wordpress" ),
450
+			__( "nightmare", "google-analytics-for-wordpress" ),
451
+			__( "results", "google-analytics-for-wordpress" ),
452
+			__( "line", "google-analytics-for-wordpress" ),
453
+			__( "no good", "google-analytics-for-wordpress" ),
454
+			__( "pound", "google-analytics-for-wordpress" ),
455
+			__( "loathsome", "google-analytics-for-wordpress" ),
456
+			__( "no questions asked", "google-analytics-for-wordpress" ),
457
+			__( "revenge", "google-analytics-for-wordpress" ),
458
+			__( "lonely", "google-analytics-for-wordpress" ),
459
+			__( "looks like a", "google-analytics-for-wordpress" ),
460
+			__( "obnoxious", "google-analytics-for-wordpress" ),
461
+			__( "preposterous", "google-analytics-for-wordpress" ),
462
+			__( "revolting", "google-analytics-for-wordpress" ),
463
+			__( "looming", "google-analytics-for-wordpress" ),
464
+			__( "priced", "google-analytics-for-wordpress" ),
465
+			__( "lost", "google-analytics-for-wordpress" ),
466
+			__( "prison", "google-analytics-for-wordpress" ),
467
+			__( "lowest", "google-analytics-for-wordpress" ),
468
+			__( "of the", "google-analytics-for-wordpress" ),
469
+			__( "privacy", "google-analytics-for-wordpress" ),
470
+			__( "rich", "google-analytics-for-wordpress" ),
471
+			__( "lunatic", "google-analytics-for-wordpress" ),
472
+			__( "off-limits", "google-analytics-for-wordpress" ),
473
+			__( "private", "google-analytics-for-wordpress" ),
474
+			__( "risky", "google-analytics-for-wordpress" ),
475
+			__( "lurking", "google-analytics-for-wordpress" ),
476
+			__( "offer", "google-analytics-for-wordpress" ),
477
+			__( "prize", "google-analytics-for-wordpress" ),
478
+			__( "ruthless", "google-analytics-for-wordpress" ),
479
+			__( "lust", "google-analytics-for-wordpress" ),
480
+			__( "official", "google-analytics-for-wordpress" ),
481
+			__( "luxurious", "google-analytics-for-wordpress" ),
482
+			__( "on the", "google-analytics-for-wordpress" ),
483
+			__( "profit", "google-analytics-for-wordpress" ),
484
+			__( "scary", "google-analytics-for-wordpress" ),
485
+			__( "lying", "google-analytics-for-wordpress" ),
486
+			__( "outlawed", "google-analytics-for-wordpress" ),
487
+			__( "protected", "google-analytics-for-wordpress" ),
488
+			__( "scream", "google-analytics-for-wordpress" ),
489
+			__( "searing", "google-analytics-for-wordpress" ),
490
+			__( "overcome", "google-analytics-for-wordpress" ),
491
+			__( "provocative", "google-analytics-for-wordpress" ),
492
+			__( "make you", "google-analytics-for-wordpress" ),
493
+			__( "painful", "google-analytics-for-wordpress" ),
494
+			__( "pummel", "google-analytics-for-wordpress" ),
495
+			__( "secure", "google-analytics-for-wordpress" ),
496
+			__( "pale", "google-analytics-for-wordpress" ),
497
+			__( "punish", "google-analytics-for-wordpress" ),
498
+			__( "marked down", "google-analytics-for-wordpress" ),
499
+			__( "panic", "google-analytics-for-wordpress" ),
500
+			__( "quadruple", "google-analytics-for-wordpress" ),
501
+			__( "secutively", "google-analytics-for-wordpress" ),
502
+			__( "massive", "google-analytics-for-wordpress" ),
503
+			__( "pay zero", "google-analytics-for-wordpress" ),
504
+			__( "seize", "google-analytics-for-wordpress" ),
505
+			__( "meltdown", "google-analytics-for-wordpress" ),
506
+			__( "payback", "google-analytics-for-wordpress" ),
507
+			__( "might look like a", "google-analytics-for-wordpress" ),
508
+			__( "peril", "google-analytics-for-wordpress" ),
509
+			__( "mind-blowing", "google-analytics-for-wordpress" ),
510
+			__( "shameless", "google-analytics-for-wordpress" ),
511
+			__( "minute", "google-analytics-for-wordpress" ),
512
+			__( "rave", "google-analytics-for-wordpress" ),
513
+			__( "shatter", "google-analytics-for-wordpress" ),
514
+			__( "piranha", "google-analytics-for-wordpress" ),
515
+			__( "reckoning", "google-analytics-for-wordpress" ),
516
+			__( "shellacking", "google-analytics-for-wordpress" ),
517
+			__( "mired", "google-analytics-for-wordpress" ),
518
+			__( "pitfall", "google-analytics-for-wordpress" ),
519
+			__( "reclaim", "google-analytics-for-wordpress" ),
520
+			__( "mistakes", "google-analytics-for-wordpress" ),
521
+			__( "plague", "google-analytics-for-wordpress" ),
522
+			__( "sick and tired", "google-analytics-for-wordpress" ),
523
+			__( "money", "google-analytics-for-wordpress" ),
524
+			__( "played", "google-analytics-for-wordpress" ),
525
+			__( "refugee", "google-analytics-for-wordpress" ),
526
+			__( "silly", "google-analytics-for-wordpress" ),
527
+			__( "money-grubbing", "google-analytics-for-wordpress" ),
528
+			__( "pluck", "google-analytics-for-wordpress" ),
529
+			__( "refund", "google-analytics-for-wordpress" ),
530
+			__( "moneyback", "google-analytics-for-wordpress" ),
531
+			__( "plummet", "google-analytics-for-wordpress" ),
532
+			__( "plunge", "google-analytics-for-wordpress" ),
533
+			__( "murder", "google-analytics-for-wordpress" ),
534
+			__( "pointless", "google-analytics-for-wordpress" ),
535
+			__( "sinful", "google-analytics-for-wordpress" ),
536
+			__( "myths", "google-analytics-for-wordpress" ),
537
+			__( "poor", "google-analytics-for-wordpress" ),
538
+			__( "remarkably", "google-analytics-for-wordpress" ),
539
+			__( "six-figure", "google-analytics-for-wordpress" ),
540
+			__( "never again", "google-analytics-for-wordpress" ),
541
+			__( "research", "google-analytics-for-wordpress" ),
542
+			__( "surrender", "google-analytics-for-wordpress" ),
543
+			__( "to the", "google-analytics-for-wordpress" ),
544
+			__( "varify", "google-analytics-for-wordpress" ),
545
+			__( "skyrocket", "google-analytics-for-wordpress" ),
546
+			__( "toxic", "google-analytics-for-wordpress" ),
547
+			__( "vibrant", "google-analytics-for-wordpress" ),
548
+			__( "slaughter", "google-analytics-for-wordpress" ),
549
+			__( "swindle", "google-analytics-for-wordpress" ),
550
+			__( "trap", "google-analytics-for-wordpress" ),
551
+			__( "victim", "google-analytics-for-wordpress" ),
552
+			__( "sleazy", "google-analytics-for-wordpress" ),
553
+			__( "taboo", "google-analytics-for-wordpress" ),
554
+			__( "treasure", "google-analytics-for-wordpress" ),
555
+			__( "victory", "google-analytics-for-wordpress" ),
556
+			__( "smash", "google-analytics-for-wordpress" ),
557
+			__( "tailspin", "google-analytics-for-wordpress" ),
558
+			__( "vindication", "google-analytics-for-wordpress" ),
559
+			__( "smug", "google-analytics-for-wordpress" ),
560
+			__( "tank", "google-analytics-for-wordpress" ),
561
+			__( "triple", "google-analytics-for-wordpress" ),
562
+			__( "viral", "google-analytics-for-wordpress" ),
563
+			__( "smuggled", "google-analytics-for-wordpress" ),
564
+			__( "tantalizing", "google-analytics-for-wordpress" ),
565
+			__( "triumph", "google-analytics-for-wordpress" ),
566
+			__( "volatile", "google-analytics-for-wordpress" ),
567
+			__( "sniveling", "google-analytics-for-wordpress" ),
568
+			__( "targeted", "google-analytics-for-wordpress" ),
569
+			__( "truth", "google-analytics-for-wordpress" ),
570
+			__( "vulnerable", "google-analytics-for-wordpress" ),
571
+			__( "snob", "google-analytics-for-wordpress" ),
572
+			__( "tawdry", "google-analytics-for-wordpress" ),
573
+			__( "try before you buy", "google-analytics-for-wordpress" ),
574
+			__( "tech", "google-analytics-for-wordpress" ),
575
+			__( "turn the tables", "google-analytics-for-wordpress" ),
576
+			__( "wanton", "google-analytics-for-wordpress" ),
577
+			__( "soaring", "google-analytics-for-wordpress" ),
578
+			__( "warning", "google-analytics-for-wordpress" ),
579
+			__( "teetering", "google-analytics-for-wordpress" ),
580
+			__( "unauthorized", "google-analytics-for-wordpress" ),
581
+			__( "spectacular", "google-analytics-for-wordpress" ),
582
+			__( "temporary fix", "google-analytics-for-wordpress" ),
583
+			__( "unbelievably", "google-analytics-for-wordpress" ),
584
+			__( "spine", "google-analytics-for-wordpress" ),
585
+			__( "tempting", "google-analytics-for-wordpress" ),
586
+			__( "uncommonly", "google-analytics-for-wordpress" ),
587
+			__( "what happened", "google-analytics-for-wordpress" ),
588
+			__( "spirit", "google-analytics-for-wordpress" ),
589
+			__( "what happens when", "google-analytics-for-wordpress" ),
590
+			__( "terror", "google-analytics-for-wordpress" ),
591
+			__( "under", "google-analytics-for-wordpress" ),
592
+			__( "what happens", "google-analytics-for-wordpress" ),
593
+			__( "staggering", "google-analytics-for-wordpress" ),
594
+			__( "underhanded", "google-analytics-for-wordpress" ),
595
+			__( "what this", "google-analytics-for-wordpress" ),
596
+			__( "that will make you", "google-analytics-for-wordpress" ),
597
+			__( "undo", "when you see", "google-analytics-for-wordpress" ),
598
+			__( "that will make", "google-analytics-for-wordpress" ),
599
+			__( "unexpected", "google-analytics-for-wordpress" ),
600
+			__( "when you", "google-analytics-for-wordpress" ),
601
+			__( "strangle", "google-analytics-for-wordpress" ),
602
+			__( "that will", "google-analytics-for-wordpress" ),
603
+			__( "whip", "google-analytics-for-wordpress" ),
604
+			__( "the best", "google-analytics-for-wordpress" ),
605
+			__( "whopping", "google-analytics-for-wordpress" ),
606
+			__( "stuck up", "google-analytics-for-wordpress" ),
607
+			__( "the ranking of", "google-analytics-for-wordpress" ),
608
+			__( "wicked", "google-analytics-for-wordpress" ),
609
+			__( "stunning", "google-analytics-for-wordpress" ),
610
+			__( "the most", "google-analytics-for-wordpress" ),
611
+			__( "will make you", "google-analytics-for-wordpress" ),
612
+			__( "stupid", "google-analytics-for-wordpress" ),
613
+			__( "the reason why is", "google-analytics-for-wordpress" ),
614
+			__( "unscrupulous", "google-analytics-for-wordpress" ),
615
+			__( "thing ive ever seen", "google-analytics-for-wordpress" ),
616
+			__( "withheld", "google-analytics-for-wordpress" ),
617
+			__( "this is the", "google-analytics-for-wordpress" ),
618
+			__( "this is what happens", "google-analytics-for-wordpress" ),
619
+			__( "unusually", "google-analytics-for-wordpress" ),
620
+			__( "wondrous", "google-analytics-for-wordpress" ),
621
+			__( "this is what", "google-analytics-for-wordpress" ),
622
+			__( "uplifting", "google-analytics-for-wordpress" ),
623
+			__( "worry", "google-analytics-for-wordpress" ),
624
+			__( "sure", "google-analytics-for-wordpress" ),
625
+			__( "this is", "google-analytics-for-wordpress" ),
626
+			__( "wounded", "google-analytics-for-wordpress" ),
627
+			__( "surge", "google-analytics-for-wordpress" ),
628
+			__( "thrilled", "google-analytics-for-wordpress" ),
629
+			__( "you need to know", "google-analytics-for-wordpress" ),
630
+			__( "thrilling", "google-analytics-for-wordpress" ),
631
+			__( "valor", "google-analytics-for-wordpress" ),
632
+			__( "you need to", "google-analytics-for-wordpress" ),
633
+			__( "you see what", "google-analytics-for-wordpress" ),
634
+			__( "surprising", "google-analytics-for-wordpress" ),
635
+			__( "tired", "google-analytics-for-wordpress" ),
636
+			__( "you see", "google-analytics-for-wordpress" ),
637
+			__( "surprisingly", "google-analytics-for-wordpress" ),
638
+			__( "to be", "google-analytics-for-wordpress" ),
639
+			__( "vaporize", "google-analytics-for-wordpress" ),
640 640
 		);
641 641
 
642 642
 		return $this->emotion_power_words;
@@ -653,179 +653,179 @@  discard block
 block discarded – undo
653 653
 		}
654 654
 
655 655
 		$this->power_words = array(
656
-			__("great", "google-analytics-for-wordpress"),
657
-			__("free", "google-analytics-for-wordpress"),
658
-			__("focus", "google-analytics-for-wordpress"),
659
-			__("remarkable", "google-analytics-for-wordpress"),
660
-			__("confidential", "google-analytics-for-wordpress"),
661
-			__("sale", "google-analytics-for-wordpress"),
662
-			__("wanted", "google-analytics-for-wordpress"),
663
-			__("obsession", "google-analytics-for-wordpress"),
664
-			__("sizable", "google-analytics-for-wordpress"),
665
-			__("new", "google-analytics-for-wordpress"),
666
-			__("absolutely lowest", "google-analytics-for-wordpress"),
667
-			__("surging", "google-analytics-for-wordpress"),
668
-			__("wonderful", "google-analytics-for-wordpress"),
669
-			__("professional", "google-analytics-for-wordpress"),
670
-			__("interesting", "google-analytics-for-wordpress"),
671
-			__("revisited", "google-analytics-for-wordpress"),
672
-			__("delivered", "google-analytics-for-wordpress"),
673
-			__("guaranteed", "google-analytics-for-wordpress"),
674
-			__("challenge", "google-analytics-for-wordpress"),
675
-			__("unique", "google-analytics-for-wordpress"),
676
-			__("secrets", "google-analytics-for-wordpress"),
677
-			__("special", "google-analytics-for-wordpress"),
678
-			__("lifetime", "google-analytics-for-wordpress"),
679
-			__("bargain", "google-analytics-for-wordpress"),
680
-			__("scarce", "google-analytics-for-wordpress"),
681
-			__("tested", "google-analytics-for-wordpress"),
682
-			__("highest", "google-analytics-for-wordpress"),
683
-			__("hurry", "google-analytics-for-wordpress"),
684
-			__("alert famous", "google-analytics-for-wordpress"),
685
-			__("improved", "google-analytics-for-wordpress"),
686
-			__("expert", "google-analytics-for-wordpress"),
687
-			__("daring", "google-analytics-for-wordpress"),
688
-			__("strong", "google-analytics-for-wordpress"),
689
-			__("immediately", "google-analytics-for-wordpress"),
690
-			__("advice", "google-analytics-for-wordpress"),
691
-			__("pioneering", "google-analytics-for-wordpress"),
692
-			__("unusual", "google-analytics-for-wordpress"),
693
-			__("limited", "google-analytics-for-wordpress"),
694
-			__("the truth about", "google-analytics-for-wordpress"),
695
-			__("destiny", "google-analytics-for-wordpress"),
696
-			__("outstanding", "google-analytics-for-wordpress"),
697
-			__("simplistic", "google-analytics-for-wordpress"),
698
-			__("compare", "google-analytics-for-wordpress"),
699
-			__("unsurpassed", "google-analytics-for-wordpress"),
700
-			__("energy", "google-analytics-for-wordpress"),
701
-			__("powerful", "google-analytics-for-wordpress"),
702
-			__("colorful", "google-analytics-for-wordpress"),
703
-			__("genuine", "google-analytics-for-wordpress"),
704
-			__("instructive", "google-analytics-for-wordpress"),
705
-			__("big", "google-analytics-for-wordpress"),
706
-			__("affordable", "google-analytics-for-wordpress"),
707
-			__("informative", "google-analytics-for-wordpress"),
708
-			__("liberal", "google-analytics-for-wordpress"),
709
-			__("popular", "google-analytics-for-wordpress"),
710
-			__("ultimate", "google-analytics-for-wordpress"),
711
-			__("mainstream", "google-analytics-for-wordpress"),
712
-			__("rare", "google-analytics-for-wordpress"),
713
-			__("exclusive", "google-analytics-for-wordpress"),
714
-			__("willpower", "google-analytics-for-wordpress"),
715
-			__("complete", "google-analytics-for-wordpress"),
716
-			__("edge", "google-analytics-for-wordpress"),
717
-			__("valuable", "google-analytics-for-wordpress"),
718
-			__("attractive", "google-analytics-for-wordpress"),
719
-			__("last chance", "google-analytics-for-wordpress"),
720
-			__("superior", "google-analytics-for-wordpress"),
721
-			__("how to", "google-analytics-for-wordpress"),
722
-			__("easily", "google-analytics-for-wordpress"),
723
-			__("exploit", "google-analytics-for-wordpress"),
724
-			__("unparalleled", "google-analytics-for-wordpress"),
725
-			__("endorsed", "google-analytics-for-wordpress"),
726
-			__("approved", "google-analytics-for-wordpress"),
727
-			__("quality", "google-analytics-for-wordpress"),
728
-			__("fascinating", "google-analytics-for-wordpress"),
729
-			__("unlimited", "google-analytics-for-wordpress"),
730
-			__("competitive", "google-analytics-for-wordpress"),
731
-			__("gigantic", "google-analytics-for-wordpress"),
732
-			__("compromise", "google-analytics-for-wordpress"),
733
-			__("discount", "google-analytics-for-wordpress"),
734
-			__("full", "google-analytics-for-wordpress"),
735
-			__("love", "google-analytics-for-wordpress"),
736
-			__("odd", "google-analytics-for-wordpress"),
737
-			__("fundamentals", "google-analytics-for-wordpress"),
738
-			__("mammoth", "google-analytics-for-wordpress"),
739
-			__("lavishly", "google-analytics-for-wordpress"),
740
-			__("bottom line", "google-analytics-for-wordpress"),
741
-			__("under priced", "google-analytics-for-wordpress"),
742
-			__("innovative", "google-analytics-for-wordpress"),
743
-			__("reliable", "google-analytics-for-wordpress"),
744
-			__("zinger", "google-analytics-for-wordpress"),
745
-			__("suddenly", "google-analytics-for-wordpress"),
746
-			__("it's here", "google-analytics-for-wordpress"),
747
-			__("terrific", "google-analytics-for-wordpress"),
748
-			__("simplified", "google-analytics-for-wordpress"),
749
-			__("perspective", "google-analytics-for-wordpress"),
750
-			__("just arrived", "google-analytics-for-wordpress"),
751
-			__("breakthrough", "google-analytics-for-wordpress"),
752
-			__("tremendous", "google-analytics-for-wordpress"),
753
-			__("launching", "google-analytics-for-wordpress"),
754
-			__("sure fire", "google-analytics-for-wordpress"),
755
-			__("emerging", "google-analytics-for-wordpress"),
756
-			__("helpful", "google-analytics-for-wordpress"),
757
-			__("skill", "google-analytics-for-wordpress"),
758
-			__("soar", "google-analytics-for-wordpress"),
759
-			__("profitable", "google-analytics-for-wordpress"),
760
-			__("special offer", "google-analytics-for-wordpress"),
761
-			__("reduced", "google-analytics-for-wordpress"),
762
-			__("beautiful", "google-analytics-for-wordpress"),
763
-			__("sampler", "google-analytics-for-wordpress"),
764
-			__("technology", "google-analytics-for-wordpress"),
765
-			__("better", "google-analytics-for-wordpress"),
766
-			__("crammed", "google-analytics-for-wordpress"),
767
-			__("noted", "google-analytics-for-wordpress"),
768
-			__("selected", "google-analytics-for-wordpress"),
769
-			__("shrewd", "google-analytics-for-wordpress"),
770
-			__("growth", "google-analytics-for-wordpress"),
771
-			__("luxury", "google-analytics-for-wordpress"),
772
-			__("sturdy", "google-analytics-for-wordpress"),
773
-			__("enormous", "google-analytics-for-wordpress"),
774
-			__("promising", "google-analytics-for-wordpress"),
775
-			__("unconditional", "google-analytics-for-wordpress"),
776
-			__("wealth", "google-analytics-for-wordpress"),
777
-			__("spotlight", "google-analytics-for-wordpress"),
778
-			__("astonishing", "google-analytics-for-wordpress"),
779
-			__("timely", "google-analytics-for-wordpress"),
780
-			__("successful", "google-analytics-for-wordpress"),
781
-			__("useful", "google-analytics-for-wordpress"),
782
-			__("imagination", "google-analytics-for-wordpress"),
783
-			__("bonanza", "google-analytics-for-wordpress"),
784
-			__("opportunities", "google-analytics-for-wordpress"),
785
-			__("survival", "google-analytics-for-wordpress"),
786
-			__("greatest", "google-analytics-for-wordpress"),
787
-			__("security", "google-analytics-for-wordpress"),
788
-			__("last minute", "google-analytics-for-wordpress"),
789
-			__("largest", "google-analytics-for-wordpress"),
790
-			__("high tech", "google-analytics-for-wordpress"),
791
-			__("refundable", "google-analytics-for-wordpress"),
792
-			__("monumental", "google-analytics-for-wordpress"),
793
-			__("colossal", "google-analytics-for-wordpress"),
794
-			__("latest", "google-analytics-for-wordpress"),
795
-			__("quickly", "google-analytics-for-wordpress"),
796
-			__("startling", "google-analytics-for-wordpress"),
797
-			__("now", "google-analytics-for-wordpress"),
798
-			__("important", "google-analytics-for-wordpress"),
799
-			__("revolutionary", "google-analytics-for-wordpress"),
800
-			__("quick", "google-analytics-for-wordpress"),
801
-			__("unlock", "google-analytics-for-wordpress"),
802
-			__("urgent", "google-analytics-for-wordpress"),
803
-			__("miracle", "google-analytics-for-wordpress"),
804
-			__("easy", "google-analytics-for-wordpress"),
805
-			__("fortune", "google-analytics-for-wordpress"),
806
-			__("amazing", "google-analytics-for-wordpress"),
807
-			__("magic", "google-analytics-for-wordpress"),
808
-			__("direct", "google-analytics-for-wordpress"),
809
-			__("authentic", "google-analytics-for-wordpress"),
810
-			__("exciting", "google-analytics-for-wordpress"),
811
-			__("proven", "google-analytics-for-wordpress"),
812
-			__("simple", "google-analytics-for-wordpress"),
813
-			__("announcing", "google-analytics-for-wordpress"),
814
-			__("portfolio", "google-analytics-for-wordpress"),
815
-			__("reward", "google-analytics-for-wordpress"),
816
-			__("strange", "google-analytics-for-wordpress"),
817
-			__("huge gift", "google-analytics-for-wordpress"),
818
-			__("revealing", "google-analytics-for-wordpress"),
819
-			__("weird", "google-analytics-for-wordpress"),
820
-			__("value", "google-analytics-for-wordpress"),
821
-			__("introducing", "google-analytics-for-wordpress"),
822
-			__("sensational", "google-analytics-for-wordpress"),
823
-			__("surprise", "google-analytics-for-wordpress"),
824
-			__("insider", "google-analytics-for-wordpress"),
825
-			__("practical", "google-analytics-for-wordpress"),
826
-			__("excellent", "google-analytics-for-wordpress"),
827
-			__("delighted", "google-analytics-for-wordpress"),
828
-			__("download", "google-analytics-for-wordpress"),
656
+			__( "great", "google-analytics-for-wordpress" ),
657
+			__( "free", "google-analytics-for-wordpress" ),
658
+			__( "focus", "google-analytics-for-wordpress" ),
659
+			__( "remarkable", "google-analytics-for-wordpress" ),
660
+			__( "confidential", "google-analytics-for-wordpress" ),
661
+			__( "sale", "google-analytics-for-wordpress" ),
662
+			__( "wanted", "google-analytics-for-wordpress" ),
663
+			__( "obsession", "google-analytics-for-wordpress" ),
664
+			__( "sizable", "google-analytics-for-wordpress" ),
665
+			__( "new", "google-analytics-for-wordpress" ),
666
+			__( "absolutely lowest", "google-analytics-for-wordpress" ),
667
+			__( "surging", "google-analytics-for-wordpress" ),
668
+			__( "wonderful", "google-analytics-for-wordpress" ),
669
+			__( "professional", "google-analytics-for-wordpress" ),
670
+			__( "interesting", "google-analytics-for-wordpress" ),
671
+			__( "revisited", "google-analytics-for-wordpress" ),
672
+			__( "delivered", "google-analytics-for-wordpress" ),
673
+			__( "guaranteed", "google-analytics-for-wordpress" ),
674
+			__( "challenge", "google-analytics-for-wordpress" ),
675
+			__( "unique", "google-analytics-for-wordpress" ),
676
+			__( "secrets", "google-analytics-for-wordpress" ),
677
+			__( "special", "google-analytics-for-wordpress" ),
678
+			__( "lifetime", "google-analytics-for-wordpress" ),
679
+			__( "bargain", "google-analytics-for-wordpress" ),
680
+			__( "scarce", "google-analytics-for-wordpress" ),
681
+			__( "tested", "google-analytics-for-wordpress" ),
682
+			__( "highest", "google-analytics-for-wordpress" ),
683
+			__( "hurry", "google-analytics-for-wordpress" ),
684
+			__( "alert famous", "google-analytics-for-wordpress" ),
685
+			__( "improved", "google-analytics-for-wordpress" ),
686
+			__( "expert", "google-analytics-for-wordpress" ),
687
+			__( "daring", "google-analytics-for-wordpress" ),
688
+			__( "strong", "google-analytics-for-wordpress" ),
689
+			__( "immediately", "google-analytics-for-wordpress" ),
690
+			__( "advice", "google-analytics-for-wordpress" ),
691
+			__( "pioneering", "google-analytics-for-wordpress" ),
692
+			__( "unusual", "google-analytics-for-wordpress" ),
693
+			__( "limited", "google-analytics-for-wordpress" ),
694
+			__( "the truth about", "google-analytics-for-wordpress" ),
695
+			__( "destiny", "google-analytics-for-wordpress" ),
696
+			__( "outstanding", "google-analytics-for-wordpress" ),
697
+			__( "simplistic", "google-analytics-for-wordpress" ),
698
+			__( "compare", "google-analytics-for-wordpress" ),
699
+			__( "unsurpassed", "google-analytics-for-wordpress" ),
700
+			__( "energy", "google-analytics-for-wordpress" ),
701
+			__( "powerful", "google-analytics-for-wordpress" ),
702
+			__( "colorful", "google-analytics-for-wordpress" ),
703
+			__( "genuine", "google-analytics-for-wordpress" ),
704
+			__( "instructive", "google-analytics-for-wordpress" ),
705
+			__( "big", "google-analytics-for-wordpress" ),
706
+			__( "affordable", "google-analytics-for-wordpress" ),
707
+			__( "informative", "google-analytics-for-wordpress" ),
708
+			__( "liberal", "google-analytics-for-wordpress" ),
709
+			__( "popular", "google-analytics-for-wordpress" ),
710
+			__( "ultimate", "google-analytics-for-wordpress" ),
711
+			__( "mainstream", "google-analytics-for-wordpress" ),
712
+			__( "rare", "google-analytics-for-wordpress" ),
713
+			__( "exclusive", "google-analytics-for-wordpress" ),
714
+			__( "willpower", "google-analytics-for-wordpress" ),
715
+			__( "complete", "google-analytics-for-wordpress" ),
716
+			__( "edge", "google-analytics-for-wordpress" ),
717
+			__( "valuable", "google-analytics-for-wordpress" ),
718
+			__( "attractive", "google-analytics-for-wordpress" ),
719
+			__( "last chance", "google-analytics-for-wordpress" ),
720
+			__( "superior", "google-analytics-for-wordpress" ),
721
+			__( "how to", "google-analytics-for-wordpress" ),
722
+			__( "easily", "google-analytics-for-wordpress" ),
723
+			__( "exploit", "google-analytics-for-wordpress" ),
724
+			__( "unparalleled", "google-analytics-for-wordpress" ),
725
+			__( "endorsed", "google-analytics-for-wordpress" ),
726
+			__( "approved", "google-analytics-for-wordpress" ),
727
+			__( "quality", "google-analytics-for-wordpress" ),
728
+			__( "fascinating", "google-analytics-for-wordpress" ),
729
+			__( "unlimited", "google-analytics-for-wordpress" ),
730
+			__( "competitive", "google-analytics-for-wordpress" ),
731
+			__( "gigantic", "google-analytics-for-wordpress" ),
732
+			__( "compromise", "google-analytics-for-wordpress" ),
733
+			__( "discount", "google-analytics-for-wordpress" ),
734
+			__( "full", "google-analytics-for-wordpress" ),
735
+			__( "love", "google-analytics-for-wordpress" ),
736
+			__( "odd", "google-analytics-for-wordpress" ),
737
+			__( "fundamentals", "google-analytics-for-wordpress" ),
738
+			__( "mammoth", "google-analytics-for-wordpress" ),
739
+			__( "lavishly", "google-analytics-for-wordpress" ),
740
+			__( "bottom line", "google-analytics-for-wordpress" ),
741
+			__( "under priced", "google-analytics-for-wordpress" ),
742
+			__( "innovative", "google-analytics-for-wordpress" ),
743
+			__( "reliable", "google-analytics-for-wordpress" ),
744
+			__( "zinger", "google-analytics-for-wordpress" ),
745
+			__( "suddenly", "google-analytics-for-wordpress" ),
746
+			__( "it's here", "google-analytics-for-wordpress" ),
747
+			__( "terrific", "google-analytics-for-wordpress" ),
748
+			__( "simplified", "google-analytics-for-wordpress" ),
749
+			__( "perspective", "google-analytics-for-wordpress" ),
750
+			__( "just arrived", "google-analytics-for-wordpress" ),
751
+			__( "breakthrough", "google-analytics-for-wordpress" ),
752
+			__( "tremendous", "google-analytics-for-wordpress" ),
753
+			__( "launching", "google-analytics-for-wordpress" ),
754
+			__( "sure fire", "google-analytics-for-wordpress" ),
755
+			__( "emerging", "google-analytics-for-wordpress" ),
756
+			__( "helpful", "google-analytics-for-wordpress" ),
757
+			__( "skill", "google-analytics-for-wordpress" ),
758
+			__( "soar", "google-analytics-for-wordpress" ),
759
+			__( "profitable", "google-analytics-for-wordpress" ),
760
+			__( "special offer", "google-analytics-for-wordpress" ),
761
+			__( "reduced", "google-analytics-for-wordpress" ),
762
+			__( "beautiful", "google-analytics-for-wordpress" ),
763
+			__( "sampler", "google-analytics-for-wordpress" ),
764
+			__( "technology", "google-analytics-for-wordpress" ),
765
+			__( "better", "google-analytics-for-wordpress" ),
766
+			__( "crammed", "google-analytics-for-wordpress" ),
767
+			__( "noted", "google-analytics-for-wordpress" ),
768
+			__( "selected", "google-analytics-for-wordpress" ),
769
+			__( "shrewd", "google-analytics-for-wordpress" ),
770
+			__( "growth", "google-analytics-for-wordpress" ),
771
+			__( "luxury", "google-analytics-for-wordpress" ),
772
+			__( "sturdy", "google-analytics-for-wordpress" ),
773
+			__( "enormous", "google-analytics-for-wordpress" ),
774
+			__( "promising", "google-analytics-for-wordpress" ),
775
+			__( "unconditional", "google-analytics-for-wordpress" ),
776
+			__( "wealth", "google-analytics-for-wordpress" ),
777
+			__( "spotlight", "google-analytics-for-wordpress" ),
778
+			__( "astonishing", "google-analytics-for-wordpress" ),
779
+			__( "timely", "google-analytics-for-wordpress" ),
780
+			__( "successful", "google-analytics-for-wordpress" ),
781
+			__( "useful", "google-analytics-for-wordpress" ),
782
+			__( "imagination", "google-analytics-for-wordpress" ),
783
+			__( "bonanza", "google-analytics-for-wordpress" ),
784
+			__( "opportunities", "google-analytics-for-wordpress" ),
785
+			__( "survival", "google-analytics-for-wordpress" ),
786
+			__( "greatest", "google-analytics-for-wordpress" ),
787
+			__( "security", "google-analytics-for-wordpress" ),
788
+			__( "last minute", "google-analytics-for-wordpress" ),
789
+			__( "largest", "google-analytics-for-wordpress" ),
790
+			__( "high tech", "google-analytics-for-wordpress" ),
791
+			__( "refundable", "google-analytics-for-wordpress" ),
792
+			__( "monumental", "google-analytics-for-wordpress" ),
793
+			__( "colossal", "google-analytics-for-wordpress" ),
794
+			__( "latest", "google-analytics-for-wordpress" ),
795
+			__( "quickly", "google-analytics-for-wordpress" ),
796
+			__( "startling", "google-analytics-for-wordpress" ),
797
+			__( "now", "google-analytics-for-wordpress" ),
798
+			__( "important", "google-analytics-for-wordpress" ),
799
+			__( "revolutionary", "google-analytics-for-wordpress" ),
800
+			__( "quick", "google-analytics-for-wordpress" ),
801
+			__( "unlock", "google-analytics-for-wordpress" ),
802
+			__( "urgent", "google-analytics-for-wordpress" ),
803
+			__( "miracle", "google-analytics-for-wordpress" ),
804
+			__( "easy", "google-analytics-for-wordpress" ),
805
+			__( "fortune", "google-analytics-for-wordpress" ),
806
+			__( "amazing", "google-analytics-for-wordpress" ),
807
+			__( "magic", "google-analytics-for-wordpress" ),
808
+			__( "direct", "google-analytics-for-wordpress" ),
809
+			__( "authentic", "google-analytics-for-wordpress" ),
810
+			__( "exciting", "google-analytics-for-wordpress" ),
811
+			__( "proven", "google-analytics-for-wordpress" ),
812
+			__( "simple", "google-analytics-for-wordpress" ),
813
+			__( "announcing", "google-analytics-for-wordpress" ),
814
+			__( "portfolio", "google-analytics-for-wordpress" ),
815
+			__( "reward", "google-analytics-for-wordpress" ),
816
+			__( "strange", "google-analytics-for-wordpress" ),
817
+			__( "huge gift", "google-analytics-for-wordpress" ),
818
+			__( "revealing", "google-analytics-for-wordpress" ),
819
+			__( "weird", "google-analytics-for-wordpress" ),
820
+			__( "value", "google-analytics-for-wordpress" ),
821
+			__( "introducing", "google-analytics-for-wordpress" ),
822
+			__( "sensational", "google-analytics-for-wordpress" ),
823
+			__( "surprise", "google-analytics-for-wordpress" ),
824
+			__( "insider", "google-analytics-for-wordpress" ),
825
+			__( "practical", "google-analytics-for-wordpress" ),
826
+			__( "excellent", "google-analytics-for-wordpress" ),
827
+			__( "delighted", "google-analytics-for-wordpress" ),
828
+			__( "download", "google-analytics-for-wordpress" ),
829 829
 		);
830 830
 
831 831
 		return $this->power_words;
@@ -842,69 +842,69 @@  discard block
 block discarded – undo
842 842
 		}
843 843
 
844 844
 		$this->common_words = array(
845
-			__("a", "google-analytics-for-wordpress"),
846
-			__("for", "google-analytics-for-wordpress"),
847
-			__("about", "google-analytics-for-wordpress"),
848
-			__("from", "google-analytics-for-wordpress"),
849
-			__("after", "google-analytics-for-wordpress"),
850
-			__("get", "google-analytics-for-wordpress"),
851
-			__("all", "google-analytics-for-wordpress"),
852
-			__("has", "google-analytics-for-wordpress"),
853
-			__("an", "google-analytics-for-wordpress"),
854
-			__("have", "google-analytics-for-wordpress"),
855
-			__("and", "google-analytics-for-wordpress"),
856
-			__("he", "google-analytics-for-wordpress"),
857
-			__("are", "google-analytics-for-wordpress"),
858
-			__("her", "google-analytics-for-wordpress"),
859
-			__("as", "google-analytics-for-wordpress"),
860
-			__("his", "google-analytics-for-wordpress"),
861
-			__("at", "google-analytics-for-wordpress"),
862
-			__("how", "google-analytics-for-wordpress"),
863
-			__("be", "google-analytics-for-wordpress"),
864
-			__("I", "google-analytics-for-wordpress"),
865
-			__("but", "google-analytics-for-wordpress"),
866
-			__("if", "google-analytics-for-wordpress"),
867
-			__("by", "google-analytics-for-wordpress"),
868
-			__("in", "google-analytics-for-wordpress"),
869
-			__("can", "google-analytics-for-wordpress"),
870
-			__("is", "google-analytics-for-wordpress"),
871
-			__("did", "google-analytics-for-wordpress"),
872
-			__("it", "google-analytics-for-wordpress"),
873
-			__("do", "google-analytics-for-wordpress"),
874
-			__("just", "google-analytics-for-wordpress"),
875
-			__("ever", "google-analytics-for-wordpress"),
876
-			__("like", "google-analytics-for-wordpress"),
877
-			__("ll", "google-analytics-for-wordpress"),
878
-			__("these", "google-analytics-for-wordpress"),
879
-			__("me", "google-analytics-for-wordpress"),
880
-			__("they", "google-analytics-for-wordpress"),
881
-			__("most", "google-analytics-for-wordpress"),
882
-			__("things", "google-analytics-for-wordpress"),
883
-			__("my", "google-analytics-for-wordpress"),
884
-			__("this", "google-analytics-for-wordpress"),
885
-			__("no", "google-analytics-for-wordpress"),
886
-			__("to", "google-analytics-for-wordpress"),
887
-			__("not", "google-analytics-for-wordpress"),
888
-			__("up", "google-analytics-for-wordpress"),
889
-			__("of", "google-analytics-for-wordpress"),
890
-			__("was", "google-analytics-for-wordpress"),
891
-			__("on", "google-analytics-for-wordpress"),
892
-			__("what", "google-analytics-for-wordpress"),
893
-			__("re", "google-analytics-for-wordpress"),
894
-			__("when", "google-analytics-for-wordpress"),
895
-			__("she", "google-analytics-for-wordpress"),
896
-			__("who", "google-analytics-for-wordpress"),
897
-			__("sould", "google-analytics-for-wordpress"),
898
-			__("why", "google-analytics-for-wordpress"),
899
-			__("so", "google-analytics-for-wordpress"),
900
-			__("will", "google-analytics-for-wordpress"),
901
-			__("that", "google-analytics-for-wordpress"),
902
-			__("with", "google-analytics-for-wordpress"),
903
-			__("the", "google-analytics-for-wordpress"),
904
-			__("you", "google-analytics-for-wordpress"),
905
-			__("their", "google-analytics-for-wordpress"),
906
-			__("your", "google-analytics-for-wordpress"),
907
-			__("there", "google-analytics-for-wordpress"),
845
+			__( "a", "google-analytics-for-wordpress" ),
846
+			__( "for", "google-analytics-for-wordpress" ),
847
+			__( "about", "google-analytics-for-wordpress" ),
848
+			__( "from", "google-analytics-for-wordpress" ),
849
+			__( "after", "google-analytics-for-wordpress" ),
850
+			__( "get", "google-analytics-for-wordpress" ),
851
+			__( "all", "google-analytics-for-wordpress" ),
852
+			__( "has", "google-analytics-for-wordpress" ),
853
+			__( "an", "google-analytics-for-wordpress" ),
854
+			__( "have", "google-analytics-for-wordpress" ),
855
+			__( "and", "google-analytics-for-wordpress" ),
856
+			__( "he", "google-analytics-for-wordpress" ),
857
+			__( "are", "google-analytics-for-wordpress" ),
858
+			__( "her", "google-analytics-for-wordpress" ),
859
+			__( "as", "google-analytics-for-wordpress" ),
860
+			__( "his", "google-analytics-for-wordpress" ),
861
+			__( "at", "google-analytics-for-wordpress" ),
862
+			__( "how", "google-analytics-for-wordpress" ),
863
+			__( "be", "google-analytics-for-wordpress" ),
864
+			__( "I", "google-analytics-for-wordpress" ),
865
+			__( "but", "google-analytics-for-wordpress" ),
866
+			__( "if", "google-analytics-for-wordpress" ),
867
+			__( "by", "google-analytics-for-wordpress" ),
868
+			__( "in", "google-analytics-for-wordpress" ),
869
+			__( "can", "google-analytics-for-wordpress" ),
870
+			__( "is", "google-analytics-for-wordpress" ),
871
+			__( "did", "google-analytics-for-wordpress" ),
872
+			__( "it", "google-analytics-for-wordpress" ),
873
+			__( "do", "google-analytics-for-wordpress" ),
874
+			__( "just", "google-analytics-for-wordpress" ),
875
+			__( "ever", "google-analytics-for-wordpress" ),
876
+			__( "like", "google-analytics-for-wordpress" ),
877
+			__( "ll", "google-analytics-for-wordpress" ),
878
+			__( "these", "google-analytics-for-wordpress" ),
879
+			__( "me", "google-analytics-for-wordpress" ),
880
+			__( "they", "google-analytics-for-wordpress" ),
881
+			__( "most", "google-analytics-for-wordpress" ),
882
+			__( "things", "google-analytics-for-wordpress" ),
883
+			__( "my", "google-analytics-for-wordpress" ),
884
+			__( "this", "google-analytics-for-wordpress" ),
885
+			__( "no", "google-analytics-for-wordpress" ),
886
+			__( "to", "google-analytics-for-wordpress" ),
887
+			__( "not", "google-analytics-for-wordpress" ),
888
+			__( "up", "google-analytics-for-wordpress" ),
889
+			__( "of", "google-analytics-for-wordpress" ),
890
+			__( "was", "google-analytics-for-wordpress" ),
891
+			__( "on", "google-analytics-for-wordpress" ),
892
+			__( "what", "google-analytics-for-wordpress" ),
893
+			__( "re", "google-analytics-for-wordpress" ),
894
+			__( "when", "google-analytics-for-wordpress" ),
895
+			__( "she", "google-analytics-for-wordpress" ),
896
+			__( "who", "google-analytics-for-wordpress" ),
897
+			__( "sould", "google-analytics-for-wordpress" ),
898
+			__( "why", "google-analytics-for-wordpress" ),
899
+			__( "so", "google-analytics-for-wordpress" ),
900
+			__( "will", "google-analytics-for-wordpress" ),
901
+			__( "that", "google-analytics-for-wordpress" ),
902
+			__( "with", "google-analytics-for-wordpress" ),
903
+			__( "the", "google-analytics-for-wordpress" ),
904
+			__( "you", "google-analytics-for-wordpress" ),
905
+			__( "their", "google-analytics-for-wordpress" ),
906
+			__( "your", "google-analytics-for-wordpress" ),
907
+			__( "there", "google-analytics-for-wordpress" ),
908 908
 		);
909 909
 
910 910
 		return $this->common_words;
@@ -922,67 +922,67 @@  discard block
 block discarded – undo
922 922
 		}
923 923
 
924 924
 		$this->uncommon_words = array(
925
-			__("actually", "google-analytics-for-wordpress"),
926
-			__("happened", "google-analytics-for-wordpress"),
927
-			__("need", "google-analytics-for-wordpress"),
928
-			__("thing", "google-analytics-for-wordpress"),
929
-			__("awesome", "google-analytics-for-wordpress"),
930
-			__("heart", "google-analytics-for-wordpress"),
931
-			__("never", "google-analytics-for-wordpress"),
932
-			__("think", "google-analytics-for-wordpress"),
933
-			__("baby", "google-analytics-for-wordpress"),
934
-			__("here", "google-analytics-for-wordpress"),
935
-			__("new", "google-analytics-for-wordpress"),
936
-			__("time", "google-analytics-for-wordpress"),
937
-			__("beautiful", "google-analytics-for-wordpress"),
938
-			__("its", "google-analytics-for-wordpress"),
939
-			__("now", "google-analytics-for-wordpress"),
940
-			__("valentines", "google-analytics-for-wordpress"),
941
-			__("being", "google-analytics-for-wordpress"),
942
-			__("know", "google-analytics-for-wordpress"),
943
-			__("old", "google-analytics-for-wordpress"),
944
-			__("video", "google-analytics-for-wordpress"),
945
-			__("best", "google-analytics-for-wordpress"),
946
-			__("life", "google-analytics-for-wordpress"),
947
-			__("one", "google-analytics-for-wordpress"),
948
-			__("want", "google-analytics-for-wordpress"),
949
-			__("better", "google-analytics-for-wordpress"),
950
-			__("little", "google-analytics-for-wordpress"),
951
-			__("out", "google-analytics-for-wordpress"),
952
-			__("watch", "google-analytics-for-wordpress"),
953
-			__("boy", "google-analytics-for-wordpress"),
954
-			__("look", "google-analytics-for-wordpress"),
955
-			__("people", "google-analytics-for-wordpress"),
956
-			__("way", "google-analytics-for-wordpress"),
957
-			__("dog", "google-analytics-for-wordpress"),
958
-			__("love", "google-analytics-for-wordpress"),
959
-			__("photos", "google-analytics-for-wordpress"),
960
-			__("ways", "google-analytics-for-wordpress"),
961
-			__("down", "google-analytics-for-wordpress"),
962
-			__("made", "google-analytics-for-wordpress"),
963
-			__("really", "google-analytics-for-wordpress"),
964
-			__("world", "google-analytics-for-wordpress"),
965
-			__("facebook", "google-analytics-for-wordpress"),
966
-			__("make", "google-analytics-for-wordpress"),
967
-			__("reasons", "google-analytics-for-wordpress"),
968
-			__("year", "google-analytics-for-wordpress"),
969
-			__("first", "google-analytics-for-wordpress"),
970
-			__("makes", "google-analytics-for-wordpress"),
971
-			__("right", "google-analytics-for-wordpress"),
972
-			__("years", "google-analytics-for-wordpress"),
973
-			__("found", "google-analytics-for-wordpress"),
974
-			__("man", "google-analytics-for-wordpress"),
975
-			__("see", "google-analytics-for-wordpress"),
976
-			__("you’ll", "google-analytics-for-wordpress"),
977
-			__("girl", "google-analytics-for-wordpress"),
978
-			__("media", "google-analytics-for-wordpress"),
979
-			__("seen", "google-analytics-for-wordpress"),
980
-			__("good", "google-analytics-for-wordpress"),
981
-			__("mind", "google-analytics-for-wordpress"),
982
-			__("social", "google-analytics-for-wordpress"),
983
-			__("guy", "google-analytics-for-wordpress"),
984
-			__("more", "google-analytics-for-wordpress"),
985
-			__("something", "google-analytics-for-wordpress"),
925
+			__( "actually", "google-analytics-for-wordpress" ),
926
+			__( "happened", "google-analytics-for-wordpress" ),
927
+			__( "need", "google-analytics-for-wordpress" ),
928
+			__( "thing", "google-analytics-for-wordpress" ),
929
+			__( "awesome", "google-analytics-for-wordpress" ),
930
+			__( "heart", "google-analytics-for-wordpress" ),
931
+			__( "never", "google-analytics-for-wordpress" ),
932
+			__( "think", "google-analytics-for-wordpress" ),
933
+			__( "baby", "google-analytics-for-wordpress" ),
934
+			__( "here", "google-analytics-for-wordpress" ),
935
+			__( "new", "google-analytics-for-wordpress" ),
936
+			__( "time", "google-analytics-for-wordpress" ),
937
+			__( "beautiful", "google-analytics-for-wordpress" ),
938
+			__( "its", "google-analytics-for-wordpress" ),
939
+			__( "now", "google-analytics-for-wordpress" ),
940
+			__( "valentines", "google-analytics-for-wordpress" ),
941
+			__( "being", "google-analytics-for-wordpress" ),
942
+			__( "know", "google-analytics-for-wordpress" ),
943
+			__( "old", "google-analytics-for-wordpress" ),
944
+			__( "video", "google-analytics-for-wordpress" ),
945
+			__( "best", "google-analytics-for-wordpress" ),
946
+			__( "life", "google-analytics-for-wordpress" ),
947
+			__( "one", "google-analytics-for-wordpress" ),
948
+			__( "want", "google-analytics-for-wordpress" ),
949
+			__( "better", "google-analytics-for-wordpress" ),
950
+			__( "little", "google-analytics-for-wordpress" ),
951
+			__( "out", "google-analytics-for-wordpress" ),
952
+			__( "watch", "google-analytics-for-wordpress" ),
953
+			__( "boy", "google-analytics-for-wordpress" ),
954
+			__( "look", "google-analytics-for-wordpress" ),
955
+			__( "people", "google-analytics-for-wordpress" ),
956
+			__( "way", "google-analytics-for-wordpress" ),
957
+			__( "dog", "google-analytics-for-wordpress" ),
958
+			__( "love", "google-analytics-for-wordpress" ),
959
+			__( "photos", "google-analytics-for-wordpress" ),
960
+			__( "ways", "google-analytics-for-wordpress" ),
961
+			__( "down", "google-analytics-for-wordpress" ),
962
+			__( "made", "google-analytics-for-wordpress" ),
963
+			__( "really", "google-analytics-for-wordpress" ),
964
+			__( "world", "google-analytics-for-wordpress" ),
965
+			__( "facebook", "google-analytics-for-wordpress" ),
966
+			__( "make", "google-analytics-for-wordpress" ),
967
+			__( "reasons", "google-analytics-for-wordpress" ),
968
+			__( "year", "google-analytics-for-wordpress" ),
969
+			__( "first", "google-analytics-for-wordpress" ),
970
+			__( "makes", "google-analytics-for-wordpress" ),
971
+			__( "right", "google-analytics-for-wordpress" ),
972
+			__( "years", "google-analytics-for-wordpress" ),
973
+			__( "found", "google-analytics-for-wordpress" ),
974
+			__( "man", "google-analytics-for-wordpress" ),
975
+			__( "see", "google-analytics-for-wordpress" ),
976
+			__( "you’ll", "google-analytics-for-wordpress" ),
977
+			__( "girl", "google-analytics-for-wordpress" ),
978
+			__( "media", "google-analytics-for-wordpress" ),
979
+			__( "seen", "google-analytics-for-wordpress" ),
980
+			__( "good", "google-analytics-for-wordpress" ),
981
+			__( "mind", "google-analytics-for-wordpress" ),
982
+			__( "social", "google-analytics-for-wordpress" ),
983
+			__( "guy", "google-analytics-for-wordpress" ),
984
+			__( "more", "google-analytics-for-wordpress" ),
985
+			__( "something", "google-analytics-for-wordpress" ),
986 986
 		);
987 987
 
988 988
 		return $this->uncommon_words;
Please login to merge, or discard this patch.
Braces   +6 added lines, -13 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  * @since      0.1
12 12
  * @author     Debjit Saha
13 13
  */
14
-class MonsterInsightsHeadlineToolPlugin{
14
+class MonsterInsightsHeadlineToolPlugin {
15 15
 
16 16
 	/**
17 17
 	 * Class Variables.
@@ -142,21 +142,13 @@  discard block
 block discarded – undo
142 142
 		$result->length = strlen( str_replace( ' ', '', $input ) );
143 143
 		$scoret = $scoret + 3;
144 144
 
145
-		if ( $result->length <= 19 ) { $scoret += 5; }
146
-		elseif ( $result->length >= 20 && $result->length <= 34 ) { $scoret += 8; }
147
-		elseif ( $result->length >= 35 && $result->length <= 66 ) { $scoret += 11; }
148
-		elseif ( $result->length >= 67 && $result->length <= 79 ) { $scoret += 8; }
149
-		elseif ( $result->length >= 80 ) { $scoret += 5; }
145
+		if ( $result->length <= 19 ) { $scoret += 5; } elseif ( $result->length >= 20 && $result->length <= 34 ) { $scoret += 8; } elseif ( $result->length >= 35 && $result->length <= 66 ) { $scoret += 11; } elseif ( $result->length >= 67 && $result->length <= 79 ) { $scoret += 8; } elseif ( $result->length >= 80 ) { $scoret += 5; }
150 146
 
151 147
 		// Count - typically 6-7 words
152 148
 		$result->word_count = count( $input_array );
153 149
 		$scoret = $scoret + 3;
154 150
 
155
-		if ( $result->word_count == 0 ) { $scoret = 0; }
156
-		else if ( $result->word_count >= 2 && $result->word_count <= 4 ) { $scoret += 5; }
157
-		elseif ( $result->word_count >= 5 && $result->word_count <= 9 ) { $scoret += 11; }
158
-		elseif ( $result->word_count >= 10 && $result->word_count <= 11 ) { $scoret += 8; }
159
-		elseif ( $result->word_count >= 12 ) { $scoret += 5; }
151
+		if ( $result->word_count == 0 ) { $scoret = 0; } else if ( $result->word_count >= 2 && $result->word_count <= 4 ) { $scoret += 5; } elseif ( $result->word_count >= 5 && $result->word_count <= 9 ) { $scoret += 11; } elseif ( $result->word_count >= 10 && $result->word_count <= 11 ) { $scoret += 8; } elseif ( $result->word_count >= 12 ) { $scoret += 5; }
160 152
 
161 153
 		// Calculate word match counts
162 154
 		$result->power_words = $this->match_words( $result->input, $result->input_array, $this->power_words() );
@@ -184,8 +176,9 @@  discard block
 block discarded – undo
184 176
 
185 177
 		if ( $result->uncommon_words_per < 0.1 ) {
186 178
 			$result->word_balance_use[] = __('uncommon', 'google-analytics-for-wordpress');
187
-		} else
188
-			$scoret = $scoret + 15;
179
+		} else {
180
+					$scoret = $scoret + 15;
181
+		}
189 182
 
190 183
 		if ( count( $result->power_words ) < 1 ) {
191 184
 			$result->word_balance_use[] = __('power', 'google-analytics-for-wordpress');
Please login to merge, or discard this patch.
includes/measurement-protocol.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,16 +22,16 @@  discard block
 block discarded – undo
22 22
 
23 23
 	$defaults = array(
24 24
 		't'  => 'event', // Required: Hit type
25
-		'ec' => '',      // Optional: Event category
26
-		'ea' => '', 	 // Optional: Event Action
27
-		'el' => '', 	 // Optional: Event Label
28
-		'ev' => null, 	 // Optional: Event Value
25
+		'ec' => '', // Optional: Event category
26
+		'ea' => '', // Optional: Event Action
27
+		'el' => '', // Optional: Event Label
28
+		'ev' => null, // Optional: Event Value
29 29
 	);
30 30
 
31
-	$body  = array_merge( $defaults , $args );
31
+	$body = array_merge( $defaults, $args );
32 32
 
33 33
 	// We want to get the user's IP address when possible
34
-	$ip     = '';
34
+	$ip = '';
35 35
 	if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) && ! filter_var( $_SERVER['HTTP_CLIENT_IP'], FILTER_VALIDATE_IP ) === false ) {
36 36
 		$ip = $_SERVER['HTTP_CLIENT_IP'];
37 37
 	} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) && ! filter_var( $_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP ) === false ) {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		'uip' => $ip,
80 80
 
81 81
 		// Optional: User Agent
82
-		'ua'  => ! empty( $user_agent ) ?  $user_agent : $_SERVER['HTTP_USER_AGENT'],
82
+		'ua'  => ! empty( $user_agent ) ? $user_agent : $_SERVER['HTTP_USER_AGENT'],
83 83
 
84 84
 		// Optional: Time of the event
85 85
 		'z'   => time(),
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	// Unset empty values to reduce request size
101 101
 	foreach ( $body as $key => $value ) {
102 102
 		if ( empty( $value ) ) {
103
-			unset( $body[ $key ] );
103
+			unset( $body[$key] );
104 104
 		}
105 105
 	}
106 106
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 		// Optional: Event Value
145 145
 		'ev' => null,
146 146
 	);
147
-	$args         = wp_parse_args( $args, $default_args );
147
+	$args = wp_parse_args( $args, $default_args );
148 148
 
149 149
 	//$args = apply_filters( 'monsterinsights_mp_track_event_call', $args );
150 150
 
Please login to merge, or discard this patch.