Version Description
Download this release
Release Info
Developer | freediver |
Plugin | SEO Friendly Images |
Version | 2.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.4.1
- readme.txt +2 -0
- seo-friendly-images.php +7 -1
readme.txt
CHANGED
@@ -19,6 +19,8 @@ TITLE attribute play lesser role but is important for visitors as this text will
|
|
19 |
|
20 |
Change Log:
|
21 |
|
|
|
|
|
22 |
v2.4: Regexp Optimization. Fixed bug with single quotes used in images.
|
23 |
|
24 |
v2.3.2: WP 2.7 cleanup
|
19 |
|
20 |
Change Log:
|
21 |
|
22 |
+
v2.4.1: Alt tag replaces dashes and underscore
|
23 |
+
|
24 |
v2.4: Regexp Optimization. Fixed bug with single quotes used in images.
|
25 |
|
26 |
v2.3.2: WP 2.7 cleanup
|
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.4
|
8 |
Author: Vladimir Prelovac
|
9 |
Author URI: http://www.prelovac.com/vladimir
|
10 |
|
@@ -211,6 +211,9 @@ function seo_friendly_images_process($matches) {
|
|
211 |
|
212 |
$alttext_rep=str_replace("\"", "", $alttext_rep);
|
213 |
$alttext_rep=str_replace("'", "", $alttext_rep);
|
|
|
|
|
|
|
214 |
|
215 |
array_push($pieces, ' alt="' . $alttext_rep . '"');
|
216 |
}
|
@@ -229,6 +232,9 @@ function seo_friendly_images_process($matches) {
|
|
229 |
$alttext_rep=str_replace("\"", "", $alttext_rep);
|
230 |
$alttext_rep=str_replace("'", "", $alttext_rep);
|
231 |
|
|
|
|
|
|
|
232 |
$pieces[$key+1]='"'.$alttext_rep.'" ';
|
233 |
|
234 |
}
|
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.4.1
|
8 |
Author: Vladimir Prelovac
|
9 |
Author URI: http://www.prelovac.com/vladimir
|
10 |
|
211 |
|
212 |
$alttext_rep=str_replace("\"", "", $alttext_rep);
|
213 |
$alttext_rep=str_replace("'", "", $alttext_rep);
|
214 |
+
|
215 |
+
$alttext_rep=ucword(str_replace("-", " ", $alttext_rep));
|
216 |
+
$alttext_rep=ucwords(str_replace("_", " ", $alttext_rep));
|
217 |
|
218 |
array_push($pieces, ' alt="' . $alttext_rep . '"');
|
219 |
}
|
232 |
$alttext_rep=str_replace("\"", "", $alttext_rep);
|
233 |
$alttext_rep=str_replace("'", "", $alttext_rep);
|
234 |
|
235 |
+
$alttext_rep=ucword(str_replace("-", " ", $alttext_rep));
|
236 |
+
$alttext_rep=ucwords(str_replace("_", " ", $alttext_rep));
|
237 |
+
|
238 |
$pieces[$key+1]='"'.$alttext_rep.'" ';
|
239 |
|
240 |
}
|