SEO Ultimate - Version 5.5.1

Version Description

Download this release

Release Info

Developer JohnLamansky
Plugin Icon 128x128 SEO Ultimate
Version 5.5.1
Comparing to
See all releases

Code changes from version 5.5 to 5.5.1

includes/jlfunctions/str.php CHANGED
@@ -220,6 +220,18 @@ class sustr {
220
  function str2func($varval) {
221
  return create_function('', 'return "'.addcslashes((string)$varval, '"').'";');
222
  }
 
 
 
 
 
 
 
 
 
 
 
 
223
  }
224
 
225
  ?>
220
  function str2func($varval) {
221
  return create_function('', 'return "'.addcslashes((string)$varval, '"').'";');
222
  }
223
+
224
+ function tclcwords($str) {
225
+ $words = explode(' ', $str);
226
+ $new_words = array();
227
+ foreach ($words as $word) {
228
+ if (strtolower($word) == $word)
229
+ $new_words[] = ucwords($word);
230
+ else
231
+ $new_words[] = $word;
232
+ }
233
+ return implode(' ', $new_words);
234
+ }
235
  }
236
 
237
  ?>
modules/internal-link-aliases/internal-link-aliases.php CHANGED
@@ -100,8 +100,15 @@ class SU_InternalLinkAliases extends SU_Module {
100
 
101
  if (in_array($id, $alias['posts']) && $to) {
102
  $from = $alias['from'];
 
103
  $to = get_bloginfo('url') . "/$alias_dir/$to/";
104
- $content = str_replace(array(" href='$from'", " href=\"$from\""), array(" href='$to'", " href=\"$to\""), $content);
 
 
 
 
 
 
105
  }
106
  }
107
  return $content;
100
 
101
  if (in_array($id, $alias['posts']) && $to) {
102
  $from = $alias['from'];
103
+ $h_from = esc_html($from);
104
  $to = get_bloginfo('url') . "/$alias_dir/$to/";
105
+ $replace = array(
106
+ " href='$from'" => " href='$to'"
107
+ , " href='$h_from'" => " href='$to'"
108
+ , " href=\"$from\"" => " href=\"$to\""
109
+ , " href=\"$h_from\"" => " href=\"$to\""
110
+ );
111
+ $content = str_replace(array_keys($replace), array_values($replace), $content);
112
  }
113
  }
114
  return $content;
modules/titles/titles.php CHANGED
@@ -189,8 +189,8 @@ class SU_Titles extends SU_Module {
189
  $cat_title = $categories[0]->name;
190
  $cat_desc = category_description($categories[0]->term_id);
191
  }
192
- if (strlen($cat_title) && $this->get_setting('terms_ucwords', true) && $cat_title == strtolower($cat_title))
193
- $cat_title = ucwords($cat_title);
194
 
195
  //Load tag titles
196
  $tag_title = $tag_desc = '';
@@ -198,8 +198,8 @@ class SU_Titles extends SU_Module {
198
  $tag_title = single_tag_title('', false);
199
  $tag_desc = tag_description();
200
 
201
- if ($this->get_setting('terms_ucwords', true) && $tag_title == strtolower($tag_title))
202
- $tag_title = ucwords($tag_title);
203
  }
204
 
205
  //Load author titles
189
  $cat_title = $categories[0]->name;
190
  $cat_desc = category_description($categories[0]->term_id);
191
  }
192
+ if (strlen($cat_title) && $this->get_setting('terms_ucwords', true))
193
+ $cat_title = sustr::tclcwords($cat_title);
194
 
195
  //Load tag titles
196
  $tag_title = $tag_desc = '';
198
  $tag_title = single_tag_title('', false);
199
  $tag_desc = tag_description();
200
 
201
+ if ($this->get_setting('terms_ucwords', true))
202
+ $tag_title = sustr::tclcwords($tag_title);
203
  }
204
 
205
  //Load author titles
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: SEO Design Solutions, JohnLamansky
3
  Tags: seo, SEO Ultimate, suite, google, yahoo, bing, search engines, admin, post, page, custom post types, categories, tags, terms, custom taxonomies, title, meta, robots, noindex, nofollow, canonical, 404, robots.txt, htaccess, slugs, url, anchor, more, link, excerpt, permalink, links, autolinks, code, footer, modules, uninstallable, reinstallable, downgradable, import, export, CSV, affiliate
4
  Requires at least: 3.0
5
  Tested up to: 3.1
6
- Stable tag: 5.5
7
 
8
  This all-in-one SEO plugin gives you control over title tags, noindex, meta tags, slugs, canonical, autolinks, 404 errors, rich snippets, and more.
9
 
@@ -227,6 +227,10 @@ Frequently asked questions, settings help, and troubleshooting tips for SEO Ulti
227
 
228
  == Changelog ==
229
 
 
 
 
 
230
  = Version 5.5 (May 20, 2011) =
231
  * Feature: Meta Robot Tags Editor now has a noindex/nofollow mass-editor for categories, tags, and custom taxonomy terms
232
 
3
  Tags: seo, SEO Ultimate, suite, google, yahoo, bing, search engines, admin, post, page, custom post types, categories, tags, terms, custom taxonomies, title, meta, robots, noindex, nofollow, canonical, 404, robots.txt, htaccess, slugs, url, anchor, more, link, excerpt, permalink, links, autolinks, code, footer, modules, uninstallable, reinstallable, downgradable, import, export, CSV, affiliate
4
  Requires at least: 3.0
5
  Tested up to: 3.1
6
+ Stable tag: 5.5.1
7
 
8
  This all-in-one SEO plugin gives you control over title tags, noindex, meta tags, slugs, canonical, autolinks, 404 errors, rich snippets, and more.
9
 
227
 
228
  == Changelog ==
229
 
230
+ = Version 5.5.1 (May 21, 2011) =
231
+ * Bugfix: Link Mask Generator can now mask links that are created in the Visual Editor and whose URLs contain ampersands
232
+ * Improvement: When the "Convert lowercase category/tag names to title case when used in title tags" option was checked and a term title had some capitalization, Title Tag Rewriter used to leave the entire term title alone; now it title-cases just the words without capitalization and leaves the capitalized words alone (so with the option enabled, the "iPod tips" category now becomes "iPod Tips" when used in title tags, for example)
233
+
234
  = Version 5.5 (May 20, 2011) =
235
  * Feature: Meta Robot Tags Editor now has a noindex/nofollow mass-editor for categories, tags, and custom taxonomy terms
236
 
seo-ultimate.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SEO Ultimate
4
  Plugin URI: http://www.seodesignsolutions.com/wordpress-seo/
5
  Description: This all-in-one SEO plugin gives you control over title tags, noindex/nofollow, meta tags, rich snippets, slugs, canonical tags, autolinks, 404 errors, rich snippets, and more.
6
- Version: 5.5
7
  Author: SEO Design Solutions
8
  Author URI: http://www.seodesignsolutions.com/
9
  Text Domain: seo-ultimate
@@ -12,7 +12,7 @@ Text Domain: seo-ultimate
12
  /**
13
  * The main SEO Ultimate plugin file.
14
  * @package SeoUltimate
15
- * @version 5.5
16
  * @link http://www.seodesignsolutions.com/wordpress-seo/ SEO Ultimate Homepage
17
  */
18
 
@@ -47,10 +47,10 @@ define('SU_MINIMUM_WP_VER', '3.0');
47
  //Reading plugin info from constants is faster than trying to parse it from the header above.
48
  define('SU_PLUGIN_NAME', 'SEO Ultimate');
49
  define('SU_PLUGIN_URI', 'http://www.seodesignsolutions.com/wordpress-seo/');
50
- define('SU_VERSION', '5.5');
51
  define('SU_AUTHOR', 'SEO Design Solutions');
52
  define('SU_AUTHOR_URI', 'http://www.seodesignsolutions.com/');
53
- define('SU_USER_AGENT', 'SeoUltimate/5.5');
54
 
55
  /********** INCLUDES **********/
56
 
3
  Plugin Name: SEO Ultimate
4
  Plugin URI: http://www.seodesignsolutions.com/wordpress-seo/
5
  Description: This all-in-one SEO plugin gives you control over title tags, noindex/nofollow, meta tags, rich snippets, slugs, canonical tags, autolinks, 404 errors, rich snippets, and more.
6
+ Version: 5.5.1
7
  Author: SEO Design Solutions
8
  Author URI: http://www.seodesignsolutions.com/
9
  Text Domain: seo-ultimate
12
  /**
13
  * The main SEO Ultimate plugin file.
14
  * @package SeoUltimate
15
+ * @version 5.5.1
16
  * @link http://www.seodesignsolutions.com/wordpress-seo/ SEO Ultimate Homepage
17
  */
18
 
47
  //Reading plugin info from constants is faster than trying to parse it from the header above.
48
  define('SU_PLUGIN_NAME', 'SEO Ultimate');
49
  define('SU_PLUGIN_URI', 'http://www.seodesignsolutions.com/wordpress-seo/');
50
+ define('SU_VERSION', '5.5.1');
51
  define('SU_AUTHOR', 'SEO Design Solutions');
52
  define('SU_AUTHOR_URI', 'http://www.seodesignsolutions.com/');
53
+ define('SU_USER_AGENT', 'SeoUltimate/5.5.1');
54
 
55
  /********** INCLUDES **********/
56