Version Description
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 2.4.2 |
| Comparing to | |
| See all releases | |
Code changes from version 2.4.1 to 2.4.2
- seo-friendly-images.php +5 -5
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 |
|
|
@@ -212,8 +212,8 @@ function seo_friendly_images_process($matches) {
|
|
| 212 |
$alttext_rep=str_replace("\"", "", $alttext_rep);
|
| 213 |
$alttext_rep=str_replace("'", "", $alttext_rep);
|
| 214 |
|
| 215 |
-
$alttext_rep=
|
| 216 |
-
$alttext_rep=
|
| 217 |
|
| 218 |
array_push($pieces, ' alt="' . $alttext_rep . '"');
|
| 219 |
}
|
|
@@ -232,8 +232,8 @@ function seo_friendly_images_process($matches) {
|
|
| 232 |
$alttext_rep=str_replace("\"", "", $alttext_rep);
|
| 233 |
$alttext_rep=str_replace("'", "", $alttext_rep);
|
| 234 |
|
| 235 |
-
$alttext_rep=
|
| 236 |
-
$alttext_rep=
|
| 237 |
|
| 238 |
$pieces[$key+1]='"'.$alttext_rep.'" ';
|
| 239 |
|
| 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.2
|
| 8 |
Author: Vladimir Prelovac
|
| 9 |
Author URI: http://www.prelovac.com/vladimir
|
| 10 |
|
| 212 |
$alttext_rep=str_replace("\"", "", $alttext_rep);
|
| 213 |
$alttext_rep=str_replace("'", "", $alttext_rep);
|
| 214 |
|
| 215 |
+
$alttext_rep=(str_replace("-", " ", $alttext_rep));
|
| 216 |
+
$alttext_rep=(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=(str_replace("-", " ", $alttext_rep));
|
| 236 |
+
$alttext_rep=(str_replace("_", " ", $alttext_rep));
|
| 237 |
|
| 238 |
$pieces[$key+1]='"'.$alttext_rep.'" ';
|
| 239 |
|
