VK All in One Expansion Unit - Version 3.0.1

Version Description

Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0.0 to 3.0.1

plugins/related_posts/related_posts.php CHANGED
@@ -28,6 +28,8 @@ function vkExUnit_add_relatedPosts($content){
28
 
29
  if( !count($mytags) ) return ;
30
 
 
 
31
  $tags = array();
32
  foreach( $mytags as $t ) $tags[] = $t->term_id;
33
 
@@ -75,6 +77,7 @@ function vkExUnit_add_relatedPosts($content){
75
  $relatedPostsHtml .= '</aside><!-- [ /.relatedPosts ] -->';
76
  $content .= $relatedPostsHtml;
77
  } // if ( $tag_posts )
 
78
  endif;
79
  wp_reset_postdata();
80
 
28
 
29
  if( !count($mytags) ) return ;
30
 
31
+ if ( isset($mytags) && $mytags ) {
32
+
33
  $tags = array();
34
  foreach( $mytags as $t ) $tags[] = $t->term_id;
35
 
77
  $relatedPostsHtml .= '</aside><!-- [ /.relatedPosts ] -->';
78
  $content .= $relatedPostsHtml;
79
  } // if ( $tag_posts )
80
+ } // if ( isset($mytags) && $mytags )
81
  endif;
82
  wp_reset_postdata();
83