By my quick research, it seems that following code is reported as “virus”:
for($i=1;$i<=12;$i++){
if(!empty(wp_slimstat_db::$filters_normalized['date']['month']) && wp_slimstat_db::$filters_normalized['date']['month'] == $i)
echo "<option value='$i' selected='selected'>".substr($GLOBALS['month'][zeroise($i, 2)], 0, 3)."</option>";
else
echo "<option value='$i'>".substr($GLOBALS['month'][zeroise($i, 2)], 0, 3)."</option>";
}
But equivalent code is passed:
for($i=1;$i<=12;$i++){
$i_month=substr($GLOBALS['month'][zeroise($i, 2)], 0, 3);
if(!empty(wp_slimstat_db::$filters_normalized['date']['month']) && wp_slimstat_db::$filters_normalized['date']['month'] == $i)
echo "<option value='$i' selected='selected'>".$i_month."</option>";
else
echo "<option value='$i'>".$i_month."</option>";
}
So, it’s definitely false positive report.
PS: Possible replacement for previous code:
global $wp_locale;
$month_abbrev = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );
-
This reply was modified 7 years, 1 month ago by Sa?a.
-
This reply was modified 7 years, 1 month ago by Sa?a.