Passed
Pull Request — master (#492)
by
unknown
02:42
created
includes/admin/settings/register-settings.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -172,13 +172,13 @@  discard block
 block discarded – undo
172 172
 			)
173 173
 		),
174 174
 		/** Demographics Settings */
175
-		'demographics' => apply_filters('monsterinsights_settings_demographics',
175
+		'demographics' => apply_filters( 'monsterinsights_settings_demographics',
176 176
 			array(
177 177
 				'demographics' => array(
178 178
 					'id'          => 'demographics',
179 179
 					'name'        => __( 'Enable Demographics and Interests Reports for Remarketing and Advertising', 'google-analytics-for-wordpress' ),
180 180
 					'desc'        => sprintf( esc_html__( 'Check this setting to add the Demographics and Remarketing features to your Google Analytics tracking code. Make sure to enable Demographics and Remarketing in your Google Analytics account. We have a guide for how to do that in our %1$sknowledge base%2$s. For more information about Remarketing, we refer you to %3$sGoogle\'s documentation%2$s. Note that usage of this function is affected by privacy and cookie laws around the world. Be sure to follow the laws that affect your target audience.', 'google-analytics-for-wordpress' ), '<a href="https://www.monsterinsights.com/docs/enable-demographics-and-interests-report-in-google-analytics/#utm_medium=kb-link&amp;utm_source=gawp-config&amp;utm_campaign=wpgaplugin" target="_blank" rel="noopener noreferrer" referrer="no-referrer">',
181
-									'</a>','<a href="https://support.google.com/analytics/answer/2444872?hl=' . get_locale() . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">'
181
+									'</a>', '<a href="https://support.google.com/analytics/answer/2444872?hl=' . get_locale() . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">'
182 182
 					),
183 183
 					'type' 		  => 'checkbox',
184 184
 				),
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 			)
192 192
 		),
193 193
 		/** Enhanced Link Attribution Settings */
194
-		'links' => apply_filters('monsterinsights_settings_links',
194
+		'links' => apply_filters( 'monsterinsights_settings_links',
195 195
 			array(
196 196
 				'enhanced_link_attribution' => array(
197 197
 					'id'          => 'enhanced_link_attribution',
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 			)
227 227
 		),
228 228
 		/** File Download Settings */
229
-		'files' => apply_filters('monsterinsights_settings_files',
229
+		'files' => apply_filters( 'monsterinsights_settings_files',
230 230
 			array(
231 231
 				'track_download_as' => array(
232 232
 					'id'          => 'track_download_as',
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 			)
249 249
 		),
250 250
 		/** Affiliate Tracking Settings */
251
-		'affiliates' => apply_filters('monsterinsights_settings_affiliates',
251
+		'affiliates' => apply_filters( 'monsterinsights_settings_affiliates',
252 252
 			array(
253 253
 				'track_internal_as_outbound' => array(
254 254
 					'id'          => 'track_internal_as_outbound',
@@ -265,68 +265,68 @@  discard block
 block discarded – undo
265 265
 			)
266 266
 		),
267 267
 		/** Social Tracking Settings */
268
-		'social' => apply_filters('monsterinsights_settings_social',
268
+		'social' => apply_filters( 'monsterinsights_settings_social',
269 269
 			array()
270 270
 		),
271 271
 		/** Ad Tracking Settings */
272
-		'ads' => apply_filters('monsterinsights_settings_ads',
272
+		'ads' => apply_filters( 'monsterinsights_settings_ads',
273 273
 			array()
274 274
 		),
275 275
 		/** Forms Tracking Settings */
276
-		'forms' => apply_filters('monsterinsights_settings_forms',
276
+		'forms' => apply_filters( 'monsterinsights_settings_forms',
277 277
 			array()
278 278
 		),
279 279
 		/** eCommerce Tracking Settings */
280
-		'ecommerce' => apply_filters('monsterinsights_settings_ecommerce',
280
+		'ecommerce' => apply_filters( 'monsterinsights_settings_ecommerce',
281 281
 			array()
282 282
 		),
283 283
 		/** Media Tracking Settings */
284
-		'media' => apply_filters('monsterinsights_settings_media',
284
+		'media' => apply_filters( 'monsterinsights_settings_media',
285 285
 			array()
286 286
 		),
287 287
 		/** Members Tracking Settings */
288
-		'memberships' => apply_filters('monsterinsights_settings_memberships',
288
+		'memberships' => apply_filters( 'monsterinsights_settings_memberships',
289 289
 			array()
290 290
 		),
291 291
 		/** Dimensions Tracking Settings */
292
-		'dimensions' => apply_filters('monsterinsights_settings_dimensions',
292
+		'dimensions' => apply_filters( 'monsterinsights_settings_dimensions',
293 293
 			array()
294 294
 		),
295 295
 		/** Performance Tracking Settings */
296
-		'performance' => apply_filters('monsterinsights_settings_performance',
296
+		'performance' => apply_filters( 'monsterinsights_settings_performance',
297 297
 			array()
298 298
 		),
299 299
 		/** AMP Tracking Settings */
300
-		'amp' => apply_filters('monsterinsights_settings_amp',
300
+		'amp' => apply_filters( 'monsterinsights_settings_amp',
301 301
 			array()
302 302
 		),
303 303
 		/** Google Optimize Tracking Settings */
304
-		'goptimize' => apply_filters('monsterinsights_settings_goptimize',
304
+		'goptimize' => apply_filters( 'monsterinsights_settings_goptimize',
305 305
 			array()
306 306
 		),
307 307
 		/** Facebook Instant Articles Tracking Settings */
308
-		'fbia' => apply_filters('monsterinsights_settings_fbia',
308
+		'fbia' => apply_filters( 'monsterinsights_settings_fbia',
309 309
 			array()
310 310
 		),
311 311
 		/** Bounce Reduction Settings */
312
-		'bounce' => apply_filters('monsterinsights_settings_bounce',
312
+		'bounce' => apply_filters( 'monsterinsights_settings_bounce',
313 313
 			array()
314 314
 		),
315 315
 		/** Reporting Tracking Settings */
316
-		'reporting' => apply_filters('monsterinsights_settings_reporting',
316
+		'reporting' => apply_filters( 'monsterinsights_settings_reporting',
317 317
 			array()
318 318
 		),
319 319
 		/** Notifications Tracking Settings */
320
-		'notifications' => apply_filters('monsterinsights_settings_notifications',
320
+		'notifications' => apply_filters( 'monsterinsights_settings_notifications',
321 321
 			array()
322 322
 		),
323 323
 		/** Compatibility Tracking Settings */
324
-		'compatibility' => apply_filters('monsterinsights_settings_compatibility',
324
+		'compatibility' => apply_filters( 'monsterinsights_settings_compatibility',
325 325
 			array(
326 326
 				'subdomain_tracking' => array(
327 327
 					'id'          => 'subdomain_tracking',
328 328
 					'name'        => __( 'Domain to track as:', 'google-analytics-for-wordpress' ),
329
-					'desc'        => sprintf( esc_html__( 'This allows you to %1$sset the domain%2$s that\'s used for tracking. Only is used if set to a value, else defaults to automatic determination. It is very rare that you would need to use this setting.', 'google-analytics-for-wordpress' ), '<a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/tracking-snippet-reference" target="_blank" rel="noopener noreferrer" referrer="no-referrer">' ,'</a>' ),
329
+					'desc'        => sprintf( esc_html__( 'This allows you to %1$sset the domain%2$s that\'s used for tracking. Only is used if set to a value, else defaults to automatic determination. It is very rare that you would need to use this setting.', 'google-analytics-for-wordpress' ), '<a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/tracking-snippet-reference" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ),
330 330
 					'type' 		  => 'text',
331 331
 				),
332 332
 				'custom_code' => array(
@@ -338,18 +338,18 @@  discard block
 block discarded – undo
338 338
 				'debug_mode' => array(
339 339
 					'id'          => 'debug_mode',
340 340
 					'name'        => __( 'Enable Debug Mode', 'google-analytics-for-wordpress' ),
341
-					'desc'        => __( 'Turns on debugging in JS events tracking, logging of eCommerce requests and enables debug settings.', 'google-analytics-for-wordpress'),
341
+					'desc'        => __( 'Turns on debugging in JS events tracking, logging of eCommerce requests and enables debug settings.', 'google-analytics-for-wordpress' ),
342 342
 					'type' 		  => 'checkbox',
343 343
 				),
344 344
 			)
345 345
 		),
346 346
 		/** Permissions Tracking Settings */
347
-		'permissions' => apply_filters('monsterinsights_settings_permissions',
347
+		'permissions' => apply_filters( 'monsterinsights_settings_permissions',
348 348
 			array(
349 349
 				'view_reports' => array(
350 350
 					'id'          => 'view_reports',
351 351
 					'name'        => __( 'Let these user roles see reports (and the dashboard):', 'google-analytics-for-wordpress' ),
352
-					'desc'        => sprintf( esc_html( 'Users that have at least one of these roles will be able to view the reports and dashboard, along with any user with the %s capability.', 'google-analytics-for-wordpress' ), '<code>manage_options</code>'),
352
+					'desc'        => sprintf( esc_html( 'Users that have at least one of these roles will be able to view the reports and dashboard, along with any user with the %s capability.', 'google-analytics-for-wordpress' ), '<code>manage_options</code>' ),
353 353
 					'type'        => 'select',
354 354
 					'options'     => monsterinsights_get_roles(),
355 355
 					'select2'     => true,
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 				'save_settings' => array(
360 360
 					'id'          => 'save_settings',
361 361
 					'name'        => __( 'Let these user roles save settings:', 'google-analytics-for-wordpress' ),
362
-					'desc'        => sprintf( esc_html__( 'Users that have at least one of these roles will be able to view and save the settings panel, along with any user with the %s capability.', 'google-analytics-for-wordpress'), '<code>manage_options</code>' ),
362
+					'desc'        => sprintf( esc_html__( 'Users that have at least one of these roles will be able to view and save the settings panel, along with any user with the %s capability.', 'google-analytics-for-wordpress' ), '<code>manage_options</code>' ),
363 363
 					'type'        => 'select',
364 364
 					'options'     => monsterinsights_get_roles(),
365 365
 					'select2'     => true,
Please login to merge, or discard this patch.