SEO Ultimate - Version 4.7.1

Version Description

Download this release

Release Info

Developer SEO Design Solutions
Plugin Icon 128x128 SEO Ultimate
Version 4.7.1
Comparing to
See all releases

Code changes from version 4.7 to 4.7.1

modules/internal-link-aliases/internal-link-aliases.php CHANGED
@@ -5,7 +5,7 @@ class SU_InternalLinkAliases extends SU_Module {
5
  function init() {
6
  add_filter('su_custom_update_postmeta-aliases', array(&$this, 'save_post_aliases'), 10, 4);
7
  add_filter('the_content', array(&$this, 'apply_aliases'));
8
- add_action('template_redirect', array(&$this, 'redirect_aliases'));
9
  add_action('do_robotstxt', array(&$this, 'block_aliases_dir'));
10
  add_action('su_do_robotstxt', array(&$this, 'block_aliases_dir'));
11
  }
@@ -58,15 +58,15 @@ class SU_InternalLinkAliases extends SU_Module {
58
  function save_post_aliases($false, $saved_aliases, $metakey, $post) {
59
  if ($post->post_type == 'revision' || !is_array($saved_aliases)) return true;
60
 
61
- $all_aliases = $this->get_setting('aliases', array());
62
 
63
  $posts = array($post->ID);
64
- $new_aliases = array();
65
- foreach ($saved_aliases as $from => $to)
66
- $new_aliases[] = compact('from', 'to', 'posts');
 
67
 
68
- $all_aliases = array_merge($all_aliases, $new_aliases);
69
- $this->update_setting('aliases', $all_aliases);
70
 
71
  return true;
72
  }
@@ -74,6 +74,7 @@ class SU_InternalLinkAliases extends SU_Module {
74
  function apply_aliases($content) {
75
  $id = suwp::get_post_id();
76
  $aliases = $this->get_setting('aliases', array());
 
77
  foreach ($aliases as $alias) {
78
  $from = $alias['from'];
79
  $to = $alias['to'];
5
  function init() {
6
  add_filter('su_custom_update_postmeta-aliases', array(&$this, 'save_post_aliases'), 10, 4);
7
  add_filter('the_content', array(&$this, 'apply_aliases'));
8
+ add_action('template_redirect', array(&$this, 'redirect_aliases'), 0);
9
  add_action('do_robotstxt', array(&$this, 'block_aliases_dir'));
10
  add_action('su_do_robotstxt', array(&$this, 'block_aliases_dir'));
11
  }
58
  function save_post_aliases($false, $saved_aliases, $metakey, $post) {
59
  if ($post->post_type == 'revision' || !is_array($saved_aliases)) return true;
60
 
61
+ $aliases = $this->get_setting('aliases', array());
62
 
63
  $posts = array($post->ID);
64
+ foreach ($saved_aliases as $from => $to) {
65
+ $id = md5($from . serialize($posts));
66
+ $aliases[$id] = compact('from', 'to', 'posts');
67
+ }
68
 
69
+ $this->update_setting('aliases', $aliases);
 
70
 
71
  return true;
72
  }
74
  function apply_aliases($content) {
75
  $id = suwp::get_post_id();
76
  $aliases = $this->get_setting('aliases', array());
77
+ $aliases = array_reverse($aliases, true); //Just in case we have duplicate aliases, make sure the most recent ones are applied first
78
  foreach ($aliases as $alias) {
79
  $from = $alias['from'];
80
  $to = $alias['to'];
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: SEO Design Solutions
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: 2.8
5
  Tested up to: 3.0
6
- Stable tag: 4.7
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
 
@@ -224,6 +224,10 @@ Frequently asked questions, settings help, and troubleshooting tips for SEO Ulti
224
 
225
  == Changelog ==
226
 
 
 
 
 
227
  = Version 4.7 (December 28, 2010) =
228
  * Feature: Added the Link Mask Generator module
229
  * Bugfix: More Link Customizer now fails silently if only 1 parameter is passed to the `the_content_more_link` filter.
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: 2.8
5
  Tested up to: 3.0
6
+ Stable tag: 4.7.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
 
224
 
225
  == Changelog ==
226
 
227
+ = Version 4.7.1 (December 30, 2010) =
228
+ * Bugfix: Editing link mask slugs now removes the old link mask instead of just adding a second one
229
+ * Bugfix: Link Mask Generator now runs before WordPress' canonical function in order to stop WordPress from overriding a link mask
230
+
231
  = Version 4.7 (December 28, 2010) =
232
  * Feature: Added the Link Mask Generator module
233
  * Bugfix: More Link Customizer now fails silently if only 1 parameter is passed to the `the_content_more_link` filter.
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: 4.7
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 4.7
16
  * @link http://www.seodesignsolutions.com/wordpress-seo/ SEO Ultimate Homepage
17
  */
18
 
@@ -47,10 +47,10 @@ define('SU_MINIMUM_WP_VER', '2.8');
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', '4.7');
51
  define('SU_AUTHOR', 'SEO Design Solutions');
52
  define('SU_AUTHOR_URI', 'http://www.seodesignsolutions.com/');
53
- define('SU_USER_AGENT', 'SeoUltimate/4.7');
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: 4.7.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 4.7.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', '4.7.1');
51
  define('SU_AUTHOR', 'SEO Design Solutions');
52
  define('SU_AUTHOR_URI', 'http://www.seodesignsolutions.com/');
53
+ define('SU_USER_AGENT', 'SeoUltimate/4.7.1');
54
 
55
  /********** INCLUDES **********/
56