Support » Plugin: WP Statistics » Exclude countries not working

  • Resolved firas

    (@bachstelze)


    When I enter some country codes in “Excluded countries list” and then click “Update”, the page reloads and the “Excluded countries list” field is empty. The countries I entered are not excluded.

    By the way, I upgraded to 4.1, but the same thing happened on 4.0.1.

    https://wordpress.org/plugins/wp-statistics/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Greg Ross

    (@gregross)

    There’s a typo in the settings page, edit the file wp-content/plugins/wp-statistics/includes/settings/tabs/wp-access-level.php. Line 176 is currently:

    <textarea id="wps_exclude_countries" name="wps_exclude_countries" rows="5" cols="10" class="code" dir="ltr"><?php echo $WP_Statistics->get_option('exclude_countires');?></text

    it should be:

    <textarea id="wps_excluded_countries" name="wps_excluded_countries" rows="5" cols="10" class="code" dir="ltr"><?php echo $WP_Statistics->get_option('excluded_countries');?></textarea>

    Next release will have a fix as well.

    This works but it seems to have no effect, the countries are still not excluded from statistics. I enter the country codes as e.g. US, RU, CN (each on one line as indicated).

    Plugin Contributor Greg Ross

    (@gregross)

    I’ll take a look shortly and let you know what I find.

    Plugin Contributor Greg Ross

    (@gregross)

    I found another bug in the logic, this is more complex to resolve so you’ll have to wait for the next release for a fix.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude countries not working’ is closed to new replies.