WordPress.org

Ready to get started?Download WordPress

Forums

WP-Stats-Dashboard
[resolved] Wrong regular expressions (3 posts)

  1. redcocker
    Member
    Posted 2 years ago #

    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);

    http://wordpress.org/extend/plugins/wp-stats-dashboard/

  2. daveligthart
    Member
    Plugin Author

    Posted 2 years ago #

    The fix is implemented in version 2.8.5.

    Cheers

  3. redcocker
    Member
    Posted 2 years ago #

    Thank you, daveligthart!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic