Changeset 1008254
- Timestamp:
- 10/16/2014 12:17:32 AM (11 years ago)
- Location:
- social-metrics-tracker
- Files:
-
- 68 added
- 3 edited
-
tags/1.2.4 (added)
-
tags/1.2.4/LICENSE.md (added)
-
tags/1.2.4/MetricsUpdater.class.php (added)
-
tags/1.2.4/README.md (added)
-
tags/1.2.4/SocialMetricsSettings.class.php (added)
-
tags/1.2.4/SocialMetricsTrackerWidget.class.php (added)
-
tags/1.2.4/css (added)
-
tags/1.2.4/css/social_metrics.css (added)
-
tags/1.2.4/data-sources (added)
-
tags/1.2.4/data-sources/google_analytics.php (added)
-
tags/1.2.4/data-sources/sharedcount.com.php (added)
-
tags/1.2.4/lib (added)
-
tags/1.2.4/lib/Google (added)
-
tags/1.2.4/lib/Google/Auth (added)
-
tags/1.2.4/lib/Google/Auth/Abstract.php (added)
-
tags/1.2.4/lib/Google/Auth/AssertionCredentials.php (added)
-
tags/1.2.4/lib/Google/Auth/Exception.php (added)
-
tags/1.2.4/lib/Google/Auth/LoginTicket.php (added)
-
tags/1.2.4/lib/Google/Auth/OAuth2.php (added)
-
tags/1.2.4/lib/Google/Auth/Simple.php (added)
-
tags/1.2.4/lib/Google/Cache (added)
-
tags/1.2.4/lib/Google/Cache/Abstract.php (added)
-
tags/1.2.4/lib/Google/Cache/Apc.php (added)
-
tags/1.2.4/lib/Google/Cache/Exception.php (added)
-
tags/1.2.4/lib/Google/Cache/File.php (added)
-
tags/1.2.4/lib/Google/Cache/Memcache.php (added)
-
tags/1.2.4/lib/Google/Cache/Null.php (added)
-
tags/1.2.4/lib/Google/Client.php (added)
-
tags/1.2.4/lib/Google/Collection.php (added)
-
tags/1.2.4/lib/Google/Config.php (added)
-
tags/1.2.4/lib/Google/Exception.php (added)
-
tags/1.2.4/lib/Google/Http (added)
-
tags/1.2.4/lib/Google/Http/Batch.php (added)
-
tags/1.2.4/lib/Google/Http/CacheParser.php (added)
-
tags/1.2.4/lib/Google/Http/MediaFileUpload.php (added)
-
tags/1.2.4/lib/Google/Http/REST.php (added)
-
tags/1.2.4/lib/Google/Http/Request.php (added)
-
tags/1.2.4/lib/Google/IO (added)
-
tags/1.2.4/lib/Google/IO/Abstract.php (added)
-
tags/1.2.4/lib/Google/IO/Curl.php (added)
-
tags/1.2.4/lib/Google/IO/Exception.php (added)
-
tags/1.2.4/lib/Google/IO/Stream.php (added)
-
tags/1.2.4/lib/Google/IO/cacerts.pem (added)
-
tags/1.2.4/lib/Google/Model.php (added)
-
tags/1.2.4/lib/Google/Service (added)
-
tags/1.2.4/lib/Google/Service.php (added)
-
tags/1.2.4/lib/Google/Service/Analytics.php (added)
-
tags/1.2.4/lib/Google/Service/Exception.php (added)
-
tags/1.2.4/lib/Google/Service/Resource.php (added)
-
tags/1.2.4/lib/Google/Signer (added)
-
tags/1.2.4/lib/Google/Signer/Abstract.php (added)
-
tags/1.2.4/lib/Google/Signer/P12.php (added)
-
tags/1.2.4/lib/Google/Utils (added)
-
tags/1.2.4/lib/Google/Utils.php (added)
-
tags/1.2.4/lib/Google/Utils/URITemplate.php (added)
-
tags/1.2.4/lib/Google/Verifier (added)
-
tags/1.2.4/lib/Google/Verifier/Abstract.php (added)
-
tags/1.2.4/lib/Google/Verifier/Pem.php (added)
-
tags/1.2.4/lib/class-wp-list-table.php (added)
-
tags/1.2.4/lib/wp-settings-framework.php (added)
-
tags/1.2.4/readme.txt (added)
-
tags/1.2.4/settings (added)
-
tags/1.2.4/settings/smt-gapi.php (added)
-
tags/1.2.4/settings/smt-general.php (added)
-
tags/1.2.4/smt-dashboard-debug.php (added)
-
tags/1.2.4/smt-dashboard.php (added)
-
tags/1.2.4/smt-export.php (added)
-
tags/1.2.4/social-metrics-tracker.php (added)
-
trunk/MetricsUpdater.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/trunk/MetricsUpdater.class.php
r1007594 r1008254 58 58 // Validation 59 59 if (is_admin()) return false; 60 if (is_int($post_id) && $post_id <= 0) return false; 60 if (is_int($post_id) && $post_id <= 0) return false; 61 61 if (!$post || $post->post_status != 'publish') return false; // Allow only published posts 62 62 if ((count($types) > 0) && !is_singular($types)) return false; // Allow singular view of enabled post types … … 73 73 wp_schedule_single_event( time(), 'social_metrics_update_single_post', array( $post_id ) ); 74 74 75 } 75 } 76 76 77 77 return true; … … 83 83 $types_to_track = array(); 84 84 85 $smt_post_types = get_post_types( array( 'public' => true ), 'names' ); 85 $smt_post_types = get_post_types( array( 'public' => true ), 'names' ); 86 86 unset($smt_post_types['attachment']); 87 87 … … 120 120 // Calculate aggregate score. 121 121 $social_aggregate_score_detail = $this->calculateScoreAggregate( 122 get_post_meta($post_id, 'socialcount_TOTAL', true),123 get_post_meta($post_id, 'ga_pageviews', true),124 $post->comment_count122 intval(get_post_meta($post_id, 'socialcount_TOTAL', true)), 123 intval(get_post_meta($post_id, 'ga_pageviews', true)), 124 intval($post->comment_count) 125 125 ); 126 126 127 127 // Calculate decayed score. 128 128 $social_aggregate_score_decayed = $this->calculateScoreDecay($social_aggregate_score_detail['total'], $post->post_date); -
social-metrics-tracker/trunk/readme.txt
r1007594 r1008254 5 5 Requires at least: 3.5 6 6 Tested up to: 4.0 7 Stable tag: 1.2. 37 Stable tag: 1.2.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 81 81 == Changelog == 82 82 83 = 1.2.4 = 84 Important bug fix for ranking of posts. 85 83 86 = 1.2.3 = 84 87 * Fixed bar width when displaying a widget on the admin Dashboard. … … 117 120 118 121 == Upgrade Notice == 122 123 = 1.2.4 = 124 Important bug fix for ranking of posts. 119 125 120 126 = 1.2.3 = -
social-metrics-tracker/trunk/social-metrics-tracker.php
r1007594 r1008254 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.2. 36 Version: 1.2.4 7 7 Author: Ben Cole, Chapman University 8 8 Author URI: http://www.bencole.net … … 33 33 class SocialMetricsTracker { 34 34 35 private $version = '1.2. 3'; // for db upgrade comparison35 private $version = '1.2.4'; // for db upgrade comparison 36 36 public $updater; 37 37 public $options;
Note: See TracChangeset
for help on using the changeset viewer.