Thank you for your nice plugin.
I’m using WP-Stats-Dashboard 22.214.171.124 and I got a problem.
When “Interface language” is set to the language other than English in WordPress.com’s dashboard, It fails to get views all-time.
This problem is caused by the regular expression in wp-stats-dashboard/classes/util/WPSDUtils.php Line 466.
preg_match('@<span>([0-9]+)</span> views all-time@', str_replace(',', '', $result), $matches);
If it is changed as follows, this problem will be fixed.
preg_match('@<li><span>([0-9]+)</span> .+</li>@', str_replace(',', '', $result), $matches);
- The topic ‘[Plugin: WP-Stats-Dashboard] Wrong regular expressions’ is closed to new replies.