Version Description
- Display multiple categories (thanks to Charles Blaxland)
Download this release
Release Info
| Developer | freediver |
| Plugin | |
| Version | 2.6.3 |
| Comparing to | |
| See all releases | |
Code changes from version 2.6.2 to 2.6.3
- readme.txt +3 -0
- seo-friendly-images.php +9 -2
readme.txt
CHANGED
|
@@ -21,6 +21,9 @@ Plugin by Vladimir Prelovac. Need <a href="http://www.prelovac.com/vladimir/serv
|
|
| 21 |
|
| 22 |
== Changelog ==
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
= 2.6.1 =
|
| 25 |
* Added support for overriding image title
|
| 26 |
* Fixed bug that sometimes prevented overriding the ALT tag
|
| 21 |
|
| 22 |
== Changelog ==
|
| 23 |
|
| 24 |
+
= 2.6.3 =
|
| 25 |
+
* Display multiple categories (thanks to Charles Blaxland)
|
| 26 |
+
|
| 27 |
= 2.6.1 =
|
| 28 |
* Added support for overriding image title
|
| 29 |
* Fixed bug that sometimes prevented overriding the ALT tag
|
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.6.
|
| 8 |
Author: Vladimir Prelovac
|
| 9 |
Author URI: http://www.prelovac.com/vladimir
|
| 10 |
|
|
@@ -183,7 +183,14 @@ function seo_friendly_images_process($matches) {
|
|
| 183 |
$pieces = preg_split('/(\w+=)/', $matches[0], -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
|
| 184 |
### Add missing pieces.
|
| 185 |
|
| 186 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 187 |
|
| 188 |
$posttags = get_the_tags();
|
| 189 |
|
| 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.6.3
|
| 8 |
Author: Vladimir Prelovac
|
| 9 |
Author URI: http://www.prelovac.com/vladimir
|
| 10 |
|
| 183 |
$pieces = preg_split('/(\w+=)/', $matches[0], -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
|
| 184 |
### Add missing pieces.
|
| 185 |
|
| 186 |
+
|
| 187 |
+
$postcats=get_the_category();
|
| 188 |
+
$cats="";
|
| 189 |
+
if ($postcats) {
|
| 190 |
+
foreach($postcats as $cat) {
|
| 191 |
+
$cats = $cat->slug. ' '. $cats;
|
| 192 |
+
}
|
| 193 |
+
}
|
| 194 |
|
| 195 |
$posttags = get_the_tags();
|
| 196 |
|
