Plugin Directory

Changeset 1150272


Ignore:
Timestamp:
04/30/2015 03:32:41 PM (11 years ago)
Author:
bcole808
Message:

Release of 1.5.2

Location:
social-metrics-tracker
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • social-metrics-tracker/tags/1.5.2/readme.txt

    r1149501 r1150272  
    55Requires at least: 3.5
    66Tested up to: 4.2
    7 Stable tag: 1.5.1
     7Stable tag: 1.5.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • social-metrics-tracker/trunk/data-sources/FacebookPublicUpdater.class.php

    r1145252 r1150272  
    2121
    2222        $this->updater->resource_params = array(
    23             'href' => $this->updater->post_url
     23            'href' => $this->updater->post_url,
     24            'locale' => 'en_US' // Result will be parsed in English
    2425        );
    2526
     
    3940        if (!is_string($this->updater->data)) return 0;
    4041
    41         // Strings to search for in the result
     42        // If there is only 1 share
     43        if (strpos($this->updater->data, '<span id="u_0_2"><span>One person likes this.</span>') !== false) return 1;
     44
     45        // Strings to search for in the result if there is more than one share
    4246        $wrapper_start = '<span id="u_0_2"><span>';
    4347        $wrapper_end   = ' people like this.</span>';
     
    4650        $end   = strpos($this->updater->data, $wrapper_end, $start);
    4751
    48         // Safety check
     52        // If the data was not found in the result
    4953        if ($start === false || $end === false) return 0;
    5054
     
    5256        $match = substr($this->updater->data, $start+strlen($wrapper_start), $end - $start - strlen($wrapper_start));
    5357
    54         // Safety check
     58        // If the substring task failed
    5559        if ($match === false) return 0;
    5660
  • social-metrics-tracker/trunk/readme.txt

    r1147350 r1150272  
    55Requires at least: 3.5
    66Tested up to: 4.2
    7 Stable tag: 1.5.1
     7Stable tag: 1.5.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9696
    9797== Changelog ==
     98
     99= 1.5.2 =
     100* Fixed an issue where Facebook stats were not collected for some websites in languages other than English
     101* Fixed an issue where a Facebook count of one was reported as zero
    98102
    99103= 1.5.1 =
     
    202206== Upgrade Notice ==
    203207
     208= 1.5.2 =
     209Fixed a bug with Facebook stats on non-English websites
     210
    204211= 1.5.1 =
    205212Switch to Facebook API version 2.3
  • social-metrics-tracker/trunk/social-metrics-tracker.php

    r1147350 r1150272  
    44Plugin URI: https://github.com/ChapmanU/wp-social-metrics-tracker
    55Description: Collect and display social network shares, likes, tweets, and view counts of posts.
    6 Version: 1.5.1
     6Version: 1.5.2
    77Author: Ben Cole, Chapman University
    88Author URI: http://www.bencole.net
     
    3939class SocialMetricsTracker {
    4040
    41     public $version = '1.5.1'; // for db upgrade comparison
     41    public $version = '1.5.2'; // for db upgrade comparison
    4242    public $updater;
    4343    public $options;
Note: See TracChangeset for help on using the changeset viewer.