File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public static function run()
28
28
global $ wpdb ;
29
29
30
30
$ settings = get_settings ();
31
- if ($ settings ['prune_data_after_months ' ] == = 0 ) {
31
+ if ($ settings ['prune_data_after_months ' ] < = 0 ) {
32
32
return ;
33
33
}
34
34
Original file line number Diff line number Diff line change 38
38
39
39
<form method="POST" action="<?php echo esc_attr (add_query_arg (['koko_analytics_action ' => 'save_settings ' ])); ?> ">
40
40
<?php wp_nonce_field ('koko_analytics_save_settings ' ); ?>
41
+ <?php wp_referer_field (); ?>
42
+
41
43
<div class="ka-margin-m">
42
44
<label for="ka-exclude-user-roles" class="ka-settings--label"><?php esc_html_e ('Exclude pageviews from these user roles ' , 'koko-analytics ' ); ?> </label>
43
45
<select id="ka-exclude-user-roles" multiple="" name="koko_analytics_settings[exclude_user_roles][]" style="min-height: <?php echo count ($ user_roles ) * 30 ; ?> px; min-width: 240px;">
You can’t perform that action at this time.
0 commit comments