SEO Friendly Images - Version 3.0.3

Version Description

  • Fixed warning messages
Download this release

Release Info

Developer freediver
Plugin Icon 128x128 SEO Friendly Images
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

readme.txt CHANGED
@@ -22,6 +22,9 @@ If you like what I do in WordPress, you will also like the [ManageWP](https://ma
22
 
23
  == Changelog ==
24
 
 
 
 
25
  = 3.0.2 =
26
  * Fixed warning message
27
 
22
 
23
  == Changelog ==
24
 
25
+ = 3.0.3 =
26
+ * Fixed warning messages
27
+
28
  = 3.0.2 =
29
  * Fixed warning message
30
 
seo-friendly-images.class.php CHANGED
@@ -7,12 +7,12 @@ class SEOFriendlyImages {
7
  var $cap;
8
  var $rules;
9
 
10
- var $global;
11
  var $tree;
12
  var $process_parameters;
13
 
14
  function SEOFriendlyImages() {
15
- $this->local_version = "3.0.2";
16
  $this->plugin_url = trailingslashit(plugins_url(null, __FILE__));
17
  $this->key = 'seo-friendly-images';
18
  $this->name = 'SEO Friendly Images';
@@ -30,7 +30,7 @@ class SEOFriendlyImages {
30
  $this->add_filters_and_hooks();
31
  $options = $this->get_options();
32
  $this->rules = $options['rules'];
33
- $this->global = $options['global'];
34
  $this->tree = null;
35
 
36
  }
@@ -290,7 +290,8 @@ class SEOFriendlyImages {
290
  </div>
291
  </div>
292
  </div>
293
- <?php for ( $i = 1; $i < count( $form ) - 1; $i++ ): ?>
 
294
  <script type="text/javascript">
295
  jQuery( document ).ready( function( $){
296
  load_js(<?php echo $i; ?>, true );
@@ -670,6 +671,7 @@ class SEOFriendlyImages {
670
  $cur_category_id = get_cat_id( single_cat_title("",false ) );
671
  $found = false;
672
  $found_group = null;
 
673
  foreach ( $this->tree["archive"]["category"] as $key => $group ) {
674
  if ( $key != 'options' ) {
675
  $found = $found || in_array( $cur_category_id, $group["ids"] );
@@ -697,6 +699,7 @@ class SEOFriendlyImages {
697
  }
698
  $found = false;
699
  $found_group = null;
 
700
  foreach ( $this->tree["archive"]["tag"] as $key => $group ) {
701
  if ( $key != 'options' ) {
702
  $found = $found || in_array( $cur_tag_id, $group["ids"] );
@@ -719,6 +722,7 @@ class SEOFriendlyImages {
719
  $cur_taxonomy_id = $term->term_id;
720
  $found = false;
721
  $found_group = null;
 
722
  foreach ( $this->tree["archive"]["taxonomy"] as $key => $group ) {
723
  if ( $key != 'options' ) {
724
  $found = $found || in_array( $cur_taxonomy_id, $group["ids"] );
@@ -741,6 +745,7 @@ class SEOFriendlyImages {
741
  $cur_author_id = $term->ID;
742
  $found = false;
743
  $found_group = null;
 
744
  foreach ( $this->tree["archive"]["author"] as $key => $group ) {
745
  if ( $key != 'options' ) {
746
  $found = $found || in_array( $cur_author_id, $group["ids"] );
@@ -803,6 +808,7 @@ class SEOFriendlyImages {
803
  $cur_attachment_id = $post->ID;
804
  $found = false;
805
  $found_group = null;
 
806
  foreach ( $this->tree["singular"]["attachment"] as $key => $group ) {
807
  if ( $key != 'options' ) {
808
  $found = $found || in_array( $cur_attachment_id, $group["ids"] );
7
  var $cap;
8
  var $rules;
9
 
10
+
11
  var $tree;
12
  var $process_parameters;
13
 
14
  function SEOFriendlyImages() {
15
+ $this->local_version = "3.0.3";
16
  $this->plugin_url = trailingslashit(plugins_url(null, __FILE__));
17
  $this->key = 'seo-friendly-images';
18
  $this->name = 'SEO Friendly Images';
30
  $this->add_filters_and_hooks();
31
  $options = $this->get_options();
32
  $this->rules = $options['rules'];
33
+
34
  $this->tree = null;
35
 
36
  }
290
  </div>
291
  </div>
292
  </div>
293
+ <?php if (isset($form))
294
+ for ( $i = 1; $i < count( $form ) - 1; $i++ ): ?>
295
  <script type="text/javascript">
296
  jQuery( document ).ready( function( $){
297
  load_js(<?php echo $i; ?>, true );
671
  $cur_category_id = get_cat_id( single_cat_title("",false ) );
672
  $found = false;
673
  $found_group = null;
674
+ if (isset( $this->tree["archive"]["category"]))
675
  foreach ( $this->tree["archive"]["category"] as $key => $group ) {
676
  if ( $key != 'options' ) {
677
  $found = $found || in_array( $cur_category_id, $group["ids"] );
699
  }
700
  $found = false;
701
  $found_group = null;
702
+ if (isset($this->tree["archive"]["tag"]))
703
  foreach ( $this->tree["archive"]["tag"] as $key => $group ) {
704
  if ( $key != 'options' ) {
705
  $found = $found || in_array( $cur_tag_id, $group["ids"] );
722
  $cur_taxonomy_id = $term->term_id;
723
  $found = false;
724
  $found_group = null;
725
+ if (isset( $this->tree["archive"]["taxonomy"]))
726
  foreach ( $this->tree["archive"]["taxonomy"] as $key => $group ) {
727
  if ( $key != 'options' ) {
728
  $found = $found || in_array( $cur_taxonomy_id, $group["ids"] );
745
  $cur_author_id = $term->ID;
746
  $found = false;
747
  $found_group = null;
748
+ if (isset($this->tree["archive"]["author"]))
749
  foreach ( $this->tree["archive"]["author"] as $key => $group ) {
750
  if ( $key != 'options' ) {
751
  $found = $found || in_array( $cur_author_id, $group["ids"] );
808
  $cur_attachment_id = $post->ID;
809
  $found = false;
810
  $found_group = null;
811
+ if (isset( $this->tree["singular"]["attachment"]))
812
  foreach ( $this->tree["singular"]["attachment"] as $key => $group ) {
813
  if ( $key != 'options' ) {
814
  $found = $found || in_array( $cur_attachment_id, $group["ids"] );
seo-friendly-images.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SEO Friendly Images
4
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-friendly-images
5
  Description: Automatically adds alt and title attributes to all your images. Improves traffic from search results and makes them W3C/xHTML valid as well.
6
- Version: 3.0.2
7
  Author: Vladimir Prelovac
8
  Author URI: http://www.prelovac.com/vladimir
9
 
3
  Plugin Name: SEO Friendly Images
4
  Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-friendly-images
5
  Description: Automatically adds alt and title attributes to all your images. Improves traffic from search results and makes them W3C/xHTML valid as well.
6
+ Version: 3.0.3
7
  Author: Vladimir Prelovac
8
  Author URI: http://www.prelovac.com/vladimir
9