Version Description
- Fixed default options
Download this release
Release Info
Developer | freediver |
Plugin | SEO Friendly Images |
Version | 3.0.4 |
Comparing to | |
See all releases |
Code changes from version 3.0.3 to 3.0.4
- readme.txt +4 -0
- seo-friendly-images.class.php +4 -6
- seo-friendly-images.php +1 -1
readme.txt
CHANGED
@@ -22,6 +22,10 @@ If you like what I do in WordPress, you will also like the [ManageWP](https://ma
|
|
22 |
|
23 |
== Changelog ==
|
24 |
|
|
|
|
|
|
|
|
|
25 |
= 3.0.3 =
|
26 |
* Fixed warning messages
|
27 |
|
22 |
|
23 |
== Changelog ==
|
24 |
|
25 |
+
|
26 |
+
= 3.0.4 =
|
27 |
+
* Fixed default options
|
28 |
+
|
29 |
= 3.0.3 =
|
30 |
* Fixed warning messages
|
31 |
|
seo-friendly-images.class.php
CHANGED
@@ -881,7 +881,7 @@ class SEOFriendlyImages {
|
|
881 |
function seo_friendly_images( $content ) {
|
882 |
$options = $this->get_proper_options();
|
883 |
|
884 |
-
|
885 |
$this->process_parameters['alt'] = $options['alt'];
|
886 |
$this->process_parameters['title'] = $options['title'];
|
887 |
$this->process_parameters['override_alt'] = $options['override_alt'];
|
@@ -890,15 +890,14 @@ class SEOFriendlyImages {
|
|
890 |
$replaced = preg_replace_callback( '/<img[^>]+/', array( $this, 'seo_friendly_images_process' ), $content, 20 );
|
891 |
|
892 |
return $replaced;
|
893 |
-
|
894 |
|
895 |
return $content;
|
896 |
}
|
897 |
|
898 |
function seo_friendly_images_featured( $html ) {
|
899 |
$options = $this->get_proper_options();
|
900 |
-
|
901 |
-
if ( $options["enable"] == 'on' ) {
|
902 |
$this->process_parameters['alt'] = $options['alt'];
|
903 |
$this->process_parameters['title'] = $options['title'];
|
904 |
$this->process_parameters['override_alt'] = $options['override_alt'];
|
@@ -906,7 +905,6 @@ class SEOFriendlyImages {
|
|
906 |
$this->process_parameters['strip_extension_title'] = $options['strip_extension_title'];
|
907 |
$replaced = preg_replace_callback( '/<img[^>]+/', array( $this, 'seo_friendly_images_process' ), $html );
|
908 |
return $replaced;
|
909 |
-
}
|
910 |
|
911 |
return $html;
|
912 |
}
|
@@ -949,7 +947,7 @@ class SEOFriendlyImages {
|
|
949 |
|
950 |
$saved = get_option( $this->key );
|
951 |
|
952 |
-
if (!empty($
|
953 |
foreach ($options['rules'] as $key => $option)
|
954 |
if (!isset($saved['rules'][$key]))
|
955 |
$saved['rules'][$key] = $option;
|
881 |
function seo_friendly_images( $content ) {
|
882 |
$options = $this->get_proper_options();
|
883 |
|
884 |
+
|
885 |
$this->process_parameters['alt'] = $options['alt'];
|
886 |
$this->process_parameters['title'] = $options['title'];
|
887 |
$this->process_parameters['override_alt'] = $options['override_alt'];
|
890 |
$replaced = preg_replace_callback( '/<img[^>]+/', array( $this, 'seo_friendly_images_process' ), $content, 20 );
|
891 |
|
892 |
return $replaced;
|
893 |
+
|
894 |
|
895 |
return $content;
|
896 |
}
|
897 |
|
898 |
function seo_friendly_images_featured( $html ) {
|
899 |
$options = $this->get_proper_options();
|
900 |
+
|
|
|
901 |
$this->process_parameters['alt'] = $options['alt'];
|
902 |
$this->process_parameters['title'] = $options['title'];
|
903 |
$this->process_parameters['override_alt'] = $options['override_alt'];
|
905 |
$this->process_parameters['strip_extension_title'] = $options['strip_extension_title'];
|
906 |
$replaced = preg_replace_callback( '/<img[^>]+/', array( $this, 'seo_friendly_images_process' ), $html );
|
907 |
return $replaced;
|
|
|
908 |
|
909 |
return $html;
|
910 |
}
|
947 |
|
948 |
$saved = get_option( $this->key );
|
949 |
|
950 |
+
if (!empty($options['rules'])) {
|
951 |
foreach ($options['rules'] as $key => $option)
|
952 |
if (!isset($saved['rules'][$key]))
|
953 |
$saved['rules'][$key] = $option;
|
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.
|
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.4
|
7 |
Author: Vladimir Prelovac
|
8 |
Author URI: http://www.prelovac.com/vladimir
|
9 |
|