[Plugin: WP-Stats-Dashboard] Wrong regular expressions
-
Thank you for your nice plugin.
I’m using WP-Stats-Dashboard 2.8.4.3 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);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: WP-Stats-Dashboard] Wrong regular expressions’ is closed to new replies.