Plugin Directory

Changeset 1411560


Ignore:
Timestamp:
05/06/2016 09:18:26 AM (10 years ago)
Author:
horike
Message:

update

Location:
simple-ga-ranking/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-ga-ranking/trunk/readme.txt

    r1373541 r1411560  
    44Requires at least: 3.6.1
    55Tested up to: 4.4.2
    6 Stable tag: 2.0.3
     6Stable tag: 2.0.4
    77
    88Ranking plugin using data from google analytics.
     
    113113= 2.0.3 =
    114114* Add some hook.
     115= 2.0.4 =
     116* Bug fix.
  • simple-ga-ranking/trunk/simple-ga-ranking.php

    r1373541 r1411560  
    55Plugin URI: https://github.com/horike37/simple-ga-ranking
    66Description: Ranking plugin using data from google analytics.
    7 Version: 2.0.3
     7Version: 2.0.4
    88Author URI: https://github.com/horike37/simple-ga-ranking
    99Domain Path: /languages
     
    144144   
    145145                if ( !empty($r) ) {
    146                     if ( array_key_exists( 'post_type', $r ) ) {
     146                    if ( array_key_exists( 'post_type', $r ) && is_string($r['post_type']) ) {
    147147                        $post_type = explode(',', $r['post_type'] );
    148                         if ( !in_array( get_post($post_id)->post_type, $post_type ) )
     148                        if ( empty($post_type) || !in_array( get_post($post_id)->post_type, $post_type ) )
    149149                            continue;
    150150                    }
     
    152152                    if ( array_key_exists( 'exclude_post_type', $r ) ) {
    153153                        $exclude_post_type = explode(',', $r['exclude_post_type'] );
    154                         if ( in_array( get_post($post_id)->post_type, $exclude_post_type ) )
     154                        if ( !empty($exclude_post_type) && in_array( get_post($post_id)->post_type, $exclude_post_type ) )
    155155                            continue;
    156156                    }
  • simple-ga-ranking/trunk/vendor/hametuha/gapiwp/src/Hametuha/GapiWP/Service/Analytics.php

    r1168699 r1411560  
    199199    public function fetch($from, $to, $metrics, array $args, $view_id = null ){
    200200        if( !$this->ga ){
    201             return new \WP_Error(500, __('Google Analtyisとの連携が完了していません。', 'gapiwp'));
     201            return new \WP_Error(500, __('Google Analyticsとの連携が完了していません。', 'gapiwp'));
    202202        }
    203203        if( is_null($view_id) ){
Note: See TracChangeset for help on using the changeset viewer.