Version Description
- Added support form link.
Download this release
Release Info
Developer | priyanshu.mittal |
Plugin | Seo Optimized Images |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.4.1
- readme.txt +6 -3
- seo-optimized-images-settings.php +1 -1
- seo-optimized-images.php +3 -3
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: priyanshu.mittal
|
|
3 |
Donate link: http://www.webriti.com/
|
4 |
Tags: seo, images, seo for images, alt , alt tag, alt attribute, traffic, title tag, traffic, title attribute, seo optimization, optimization, image optimization, cool seo,search engine optimized images, search engine optimization, seo friendly images,seo friendly images plugin, google search optimized images,search friendly
|
5 |
Requires at least: 3.3+
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -44,8 +44,11 @@ In case you face any problem, contact us via the [Forums](https://wordpress.org/
|
|
44 |
|
45 |
|
46 |
== Changelog ==
|
|
|
|
|
47 |
= 1.4 =
|
48 |
-
|
|
|
49 |
= 1.3 =
|
50 |
Fixed Image Name Issue.
|
51 |
= 1.2 =
|
3 |
Donate link: http://www.webriti.com/
|
4 |
Tags: seo, images, seo for images, alt , alt tag, alt attribute, traffic, title tag, traffic, title attribute, seo optimization, optimization, image optimization, cool seo,search engine optimized images, search engine optimization, seo friendly images,seo friendly images plugin, google search optimized images,search friendly
|
5 |
Requires at least: 3.3+
|
6 |
+
Tested up to: 4.5.2
|
7 |
+
Stable tag: 1.4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
44 |
|
45 |
|
46 |
== Changelog ==
|
47 |
+
= 1.4.1 =
|
48 |
+
1. Added support form link.
|
49 |
= 1.4 =
|
50 |
+
1. Remove space before pregmatch fucntion alt and title.
|
51 |
+
2. Added check for special characters in the post title.
|
52 |
= 1.3 =
|
53 |
Fixed Image Name Issue.
|
54 |
= 1.2 =
|
seo-optimized-images-settings.php
CHANGED
@@ -207,7 +207,7 @@ if(isset($_POST['submit_general_settings_tab'])){
|
|
207 |
</div>
|
208 |
</div>
|
209 |
|
210 |
-
<p><span class="description">1. For any queries contact us via the <a href = "" target = "_blank">support forums.</a></span></p>
|
211 |
|
212 |
|
213 |
</div>
|
207 |
</div>
|
208 |
</div>
|
209 |
|
210 |
+
<p><span class="description">1. For any queries contact us via the <a href = "https://wordpress.org/support/plugin/seo-optimized-images" target = "_blank">support forums.</a></span></p>
|
211 |
|
212 |
|
213 |
</div>
|
seo-optimized-images.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: SEO Optimized Images
|
5 |
Plugin URI: http://webriti.com
|
6 |
Description: The **SEO Optimized Images** plugin Seo Optmized Images Plugin lets you dynamically insert Seo Friendly alt attributes and title attributes to your Images . Simply activate the plugin, provide the pattern and you are ready to go.
|
7 |
-
Version: 1.
|
8 |
Author: priyanshu.mittal
|
9 |
Author URI: http://webriti.com
|
10 |
|
@@ -117,7 +117,7 @@ function soi_replace_tags ($content, $alt_text='',$title='')
|
|
117 |
$t_title = 'title = "'.$title_text.'"';
|
118 |
|
119 |
//take the alt tag out from the image html markup
|
120 |
-
$is_alt = preg_match_all('/
|
121 |
|
122 |
|
123 |
|
@@ -177,7 +177,7 @@ function soi_replace_tags ($content, $alt_text='',$title='')
|
|
177 |
|
178 |
if(!isset($new_img)) $new_img=$img; // when alt tag is not overridden, than , use actual image markup ie $new_img.
|
179 |
|
180 |
-
$is_title = preg_match_all('/
|
181 |
|
182 |
// check if title tag is not present in the img tag
|
183 |
if($is_title == 0)
|
4 |
Plugin Name: SEO Optimized Images
|
5 |
Plugin URI: http://webriti.com
|
6 |
Description: The **SEO Optimized Images** plugin Seo Optmized Images Plugin lets you dynamically insert Seo Friendly alt attributes and title attributes to your Images . Simply activate the plugin, provide the pattern and you are ready to go.
|
7 |
+
Version: 1.4.1
|
8 |
Author: priyanshu.mittal
|
9 |
Author URI: http://webriti.com
|
10 |
|
117 |
$t_title = 'title = "'.$title_text.'"';
|
118 |
|
119 |
//take the alt tag out from the image html markup
|
120 |
+
$is_alt = preg_match_all('/alt="([^"]*)"/i', $img, $alt);
|
121 |
|
122 |
|
123 |
|
177 |
|
178 |
if(!isset($new_img)) $new_img=$img; // when alt tag is not overridden, than , use actual image markup ie $new_img.
|
179 |
|
180 |
+
$is_title = preg_match_all('/title="([^"]*)"/i', $new_img, $title);
|
181 |
|
182 |
// check if title tag is not present in the img tag
|
183 |
if($is_title == 0)
|