Changeset 1411560
- Timestamp:
- 05/06/2016 09:18:26 AM (10 years ago)
- Location:
- simple-ga-ranking/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
simple-ga-ranking.php (modified) (3 diffs)
-
vendor/hametuha/gapiwp/src/Hametuha/GapiWP/Service/Analytics.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-ga-ranking/trunk/readme.txt
r1373541 r1411560 4 4 Requires at least: 3.6.1 5 5 Tested up to: 4.4.2 6 Stable tag: 2.0. 36 Stable tag: 2.0.4 7 7 8 8 Ranking plugin using data from google analytics. … … 113 113 = 2.0.3 = 114 114 * Add some hook. 115 = 2.0.4 = 116 * Bug fix. -
simple-ga-ranking/trunk/simple-ga-ranking.php
r1373541 r1411560 5 5 Plugin URI: https://github.com/horike37/simple-ga-ranking 6 6 Description: Ranking plugin using data from google analytics. 7 Version: 2.0. 37 Version: 2.0.4 8 8 Author URI: https://github.com/horike37/simple-ga-ranking 9 9 Domain Path: /languages … … 144 144 145 145 if ( !empty($r) ) { 146 if ( array_key_exists( 'post_type', $r ) ) {146 if ( array_key_exists( 'post_type', $r ) && is_string($r['post_type']) ) { 147 147 $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 ) ) 149 149 continue; 150 150 } … … 152 152 if ( array_key_exists( 'exclude_post_type', $r ) ) { 153 153 $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 ) ) 155 155 continue; 156 156 } -
simple-ga-ranking/trunk/vendor/hametuha/gapiwp/src/Hametuha/GapiWP/Service/Analytics.php
r1168699 r1411560 199 199 public function fetch($from, $to, $metrics, array $args, $view_id = null ){ 200 200 if( !$this->ga ){ 201 return new \WP_Error(500, __('Google Anal tyisとの連携が完了していません。', 'gapiwp'));201 return new \WP_Error(500, __('Google Analyticsとの連携が完了していません。', 'gapiwp')); 202 202 } 203 203 if( is_null($view_id) ){
Note: See TracChangeset
for help on using the changeset viewer.