Plugin Directory

Changeset 1008254


Ignore:
Timestamp:
10/16/2014 12:17:32 AM (11 years ago)
Author:
bcole808
Message:

Release of 1.2.4

Location:
social-metrics-tracker
Files:
68 added
3 edited

Legend:

Unmodified
Added
Removed
  • social-metrics-tracker/trunk/MetricsUpdater.class.php

    r1007594 r1008254  
    5858        // Validation
    5959        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;
    6161        if (!$post || $post->post_status != 'publish')   return false; // Allow only published posts
    6262        if ((count($types) > 0) && !is_singular($types)) return false; // Allow singular view of enabled post types
     
    7373            wp_schedule_single_event( time(), 'social_metrics_update_single_post', array( $post_id ) );
    7474
    75         } 
     75        }
    7676
    7777        return true;
     
    8383        $types_to_track = array();
    8484
    85         $smt_post_types = get_post_types( array( 'public' => true ), 'names' ); 
     85        $smt_post_types = get_post_types( array( 'public' => true ), 'names' );
    8686        unset($smt_post_types['attachment']);
    8787
     
    120120        // Calculate aggregate score.
    121121        $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_count
     122                                                                    intval(get_post_meta($post_id, 'socialcount_TOTAL', true)),
     123                                                                    intval(get_post_meta($post_id, 'ga_pageviews', true)),
     124                                                                    intval($post->comment_count)
    125125                                                                    );
    126        
     126
    127127        // Calculate decayed score.
    128128        $social_aggregate_score_decayed = $this->calculateScoreDecay($social_aggregate_score_detail['total'], $post->post_date);
  • social-metrics-tracker/trunk/readme.txt

    r1007594 r1008254  
    55Requires at least: 3.5
    66Tested up to: 4.0
    7 Stable tag: 1.2.3
     7Stable tag: 1.2.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8181== Changelog ==
    8282
     83= 1.2.4 =
     84Important bug fix for ranking of posts.
     85
    8386= 1.2.3 =
    8487* Fixed bar width when displaying a widget on the admin Dashboard.
     
    117120
    118121== Upgrade Notice ==
     122
     123= 1.2.4 =
     124Important bug fix for ranking of posts.
    119125
    120126= 1.2.3 =
  • social-metrics-tracker/trunk/social-metrics-tracker.php

    r1007594 r1008254  
    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.2.3
     6Version: 1.2.4
    77Author: Ben Cole, Chapman University
    88Author URI: http://www.bencole.net
     
    3333class SocialMetricsTracker {
    3434
    35     private $version = '1.2.3'; // for db upgrade comparison
     35    private $version = '1.2.4'; // for db upgrade comparison
    3636    public $updater;
    3737    public $options;
Note: See TracChangeset for help on using the changeset viewer.