Version Description
- reverted change from 2.7.2 as it broke article view on some installations
Download this release
Release Info
Developer | freediver |
Plugin | SEO Friendly Images |
Version | 2.7.3 |
Comparing to | |
See all releases |
Code changes from version 2.7.2 to 2.7.3
- readme.txt +2 -0
- seo-friendly-images.php +5 -5
readme.txt
CHANGED
@@ -22,6 +22,8 @@ Plugin by [Vladimir Prelovac](http://www.prelovac.com/vladimir/ "Vladimir Prelov
|
|
22 |
If you like what I do in WordPress, you will also like [ManageWP](http://managewp.com "Manage WordPress sites") service.
|
23 |
|
24 |
== Changelog ==
|
|
|
|
|
25 |
|
26 |
= 2.7.2 =
|
27 |
* Fixed incompatiblity with mapping plugin [Leaflet Maps Marker](http://www.mapsmarker.com)
|
22 |
If you like what I do in WordPress, you will also like [ManageWP](http://managewp.com "Manage WordPress sites") service.
|
23 |
|
24 |
== Changelog ==
|
25 |
+
= 2.7.3 =
|
26 |
+
* reverted change from 2.7.2 as it broke article view on some installations
|
27 |
|
28 |
= 2.7.2 =
|
29 |
* Fixed incompatiblity with mapping plugin [Leaflet Maps Marker](http://www.mapsmarker.com)
|
seo-friendly-images.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: SEO Friendly Images
|
5 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-friendly-images
|
6 |
Description: Automatically adds alt and title attributes to all your images. Improves traffic from search results and makes them W3C/xHTML valid as well.
|
7 |
-
Version: 2.7.
|
8 |
Author: Vladimir Prelovac
|
9 |
Author URI: http://www.prelovac.com/vladimir
|
10 |
|
@@ -190,10 +190,10 @@ END;
|
|
190 |
$titletext_rep=str_replace("-", " ", $titletext_rep);
|
191 |
//$titletext_rep=ucwords(strtolower($titletext_rep));
|
192 |
if (!in_array('title=', $pieces)) {
|
193 |
-
array_push($pieces, ' title
|
194 |
} else {
|
195 |
$key=array_search('title=',$pieces);
|
196 |
-
$pieces[$key+1]='
|
197 |
}
|
198 |
}
|
199 |
|
@@ -208,10 +208,10 @@ END;
|
|
208 |
$alttext_rep=(str_replace("_", " ", $alttext_rep));
|
209 |
|
210 |
if (!in_array('alt=', $pieces)) {
|
211 |
-
array_push($pieces, ' alt
|
212 |
} else {
|
213 |
$key=array_search('alt=',$pieces);
|
214 |
-
$pieces[$key+1]='
|
215 |
}
|
216 |
}
|
217 |
return implode('', $pieces).' /';
|
4 |
Plugin Name: SEO Friendly Images
|
5 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-friendly-images
|
6 |
Description: Automatically adds alt and title attributes to all your images. Improves traffic from search results and makes them W3C/xHTML valid as well.
|
7 |
+
Version: 2.7.3
|
8 |
Author: Vladimir Prelovac
|
9 |
Author URI: http://www.prelovac.com/vladimir
|
10 |
|
190 |
$titletext_rep=str_replace("-", " ", $titletext_rep);
|
191 |
//$titletext_rep=ucwords(strtolower($titletext_rep));
|
192 |
if (!in_array('title=', $pieces)) {
|
193 |
+
array_push($pieces, ' title="' . $titletext_rep . '"');
|
194 |
} else {
|
195 |
$key=array_search('title=',$pieces);
|
196 |
+
$pieces[$key+1]='"'.$titletext_rep.'" ';
|
197 |
}
|
198 |
}
|
199 |
|
208 |
$alttext_rep=(str_replace("_", " ", $alttext_rep));
|
209 |
|
210 |
if (!in_array('alt=', $pieces)) {
|
211 |
+
array_push($pieces, ' alt="' . $alttext_rep . '"');
|
212 |
} else {
|
213 |
$key=array_search('alt=',$pieces);
|
214 |
+
$pieces[$key+1]='"'.$alttext_rep.'" ';
|
215 |
}
|
216 |
}
|
217 |
return implode('', $pieces).' /';
|