Changeset 1150272
- Timestamp:
- 04/30/2015 03:32:41 PM (11 years ago)
- Location:
- social-metrics-tracker
- Files:
-
- 4 edited
-
tags/1.5.2/readme.txt (modified) (1 diff)
-
trunk/data-sources/FacebookPublicUpdater.class.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/social-metrics-tracker.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-metrics-tracker/tags/1.5.2/readme.txt
r1149501 r1150272 5 5 Requires at least: 3.5 6 6 Tested up to: 4.2 7 Stable tag: 1.5. 17 Stable tag: 1.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
social-metrics-tracker/trunk/data-sources/FacebookPublicUpdater.class.php
r1145252 r1150272 21 21 22 22 $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 24 25 ); 25 26 … … 39 40 if (!is_string($this->updater->data)) return 0; 40 41 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 42 46 $wrapper_start = '<span id="u_0_2"><span>'; 43 47 $wrapper_end = ' people like this.</span>'; … … 46 50 $end = strpos($this->updater->data, $wrapper_end, $start); 47 51 48 // Safety check52 // If the data was not found in the result 49 53 if ($start === false || $end === false) return 0; 50 54 … … 52 56 $match = substr($this->updater->data, $start+strlen($wrapper_start), $end - $start - strlen($wrapper_start)); 53 57 54 // Safety check58 // If the substring task failed 55 59 if ($match === false) return 0; 56 60 -
social-metrics-tracker/trunk/readme.txt
r1147350 r1150272 5 5 Requires at least: 3.5 6 6 Tested up to: 4.2 7 Stable tag: 1.5. 17 Stable tag: 1.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 96 96 97 97 == 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 98 102 99 103 = 1.5.1 = … … 202 206 == Upgrade Notice == 203 207 208 = 1.5.2 = 209 Fixed a bug with Facebook stats on non-English websites 210 204 211 = 1.5.1 = 205 212 Switch to Facebook API version 2.3 -
social-metrics-tracker/trunk/social-metrics-tracker.php
r1147350 r1150272 4 4 Plugin URI: https://github.com/ChapmanU/wp-social-metrics-tracker 5 5 Description: Collect and display social network shares, likes, tweets, and view counts of posts. 6 Version: 1.5. 16 Version: 1.5.2 7 7 Author: Ben Cole, Chapman University 8 8 Author URI: http://www.bencole.net … … 39 39 class SocialMetricsTracker { 40 40 41 public $version = '1.5. 1'; // for db upgrade comparison41 public $version = '1.5.2'; // for db upgrade comparison 42 42 public $updater; 43 43 public $options;
Note: See TracChangeset
for help on using the changeset viewer.