SEO Ultimate - Version 5.6.1

Version Description

Download this release

Release Info

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

Code changes from version 5.6 to 5.6.1

includes/jlwp/functions.php CHANGED
@@ -10,7 +10,7 @@ class suwp {
10
  */
11
  function get_post_id() {
12
  if (is_admin())
13
- return intval($_REQUEST['post']);
14
  elseif (in_the_loop())
15
  return intval(get_the_ID());
16
  elseif (is_singular()) {
10
  */
11
  function get_post_id() {
12
  if (is_admin())
13
+ return empty($_REQUEST['post']) ? false : intval($_REQUEST['post']);
14
  elseif (in_the_loop())
15
  return intval(get_the_ID());
16
  elseif (is_singular()) {
modules/class.su-module.php CHANGED
@@ -1977,10 +1977,12 @@ class SU_Module {
1977
  function is_action($action) {
1978
  if (!isset($_GET['object']) || !($object = $_GET['object'])) $object = false;
1979
  return (
1980
- (
 
1981
  ( strcasecmp($_GET['page'], $this->plugin->key_to_hook($this->get_module_key())) == 0 ) //Is $this module being shown?
1982
  || ( strlen($this->get_parent_module()) && strcasecmp($_GET['page'], $this->plugin->key_to_hook($this->get_parent_module())) == 0) //Is the parent module being shown?
1983
  )
 
1984
  && ($_GET['action'] == $action || $_POST['action'] == $action) //Is this $action being executed?
1985
  && $this->nonce_validates($action, $object) //Is the nonce valid?
1986
  );
@@ -2127,7 +2129,7 @@ class SU_Module {
2127
  if (!$id) {
2128
  //This code is different from suwp::get_post_id();
2129
  if (is_admin()) {
2130
- $id = intval($_REQUEST['post']);
2131
  global $post;
2132
  } elseif (in_the_loop()) {
2133
  $id = intval(get_the_ID());
@@ -2139,14 +2141,13 @@ class SU_Module {
2139
  }
2140
  }
2141
 
2142
- if ($id)
2143
  $value = get_post_meta($id, "_su_$key", true);
2144
- else
 
 
2145
  $value = '';
2146
 
2147
- $value = apply_filters("su_get_postmeta", $value, $key, $post);
2148
- $value = apply_filters("su_get_postmeta-$key", $value, $key, $post);
2149
-
2150
  return $value;
2151
  }
2152
 
1977
  function is_action($action) {
1978
  if (!isset($_GET['object']) || !($object = $_GET['object'])) $object = false;
1979
  return (
1980
+ !empty($_GET['page'])
1981
+ && (
1982
  ( strcasecmp($_GET['page'], $this->plugin->key_to_hook($this->get_module_key())) == 0 ) //Is $this module being shown?
1983
  || ( strlen($this->get_parent_module()) && strcasecmp($_GET['page'], $this->plugin->key_to_hook($this->get_parent_module())) == 0) //Is the parent module being shown?
1984
  )
1985
+ && !empty($_GET['action'])
1986
  && ($_GET['action'] == $action || $_POST['action'] == $action) //Is this $action being executed?
1987
  && $this->nonce_validates($action, $object) //Is the nonce valid?
1988
  );
2129
  if (!$id) {
2130
  //This code is different from suwp::get_post_id();
2131
  if (is_admin()) {
2132
+ $id = empty($_REQUEST['post']) ? false : intval($_REQUEST['post']);
2133
  global $post;
2134
  } elseif (in_the_loop()) {
2135
  $id = intval(get_the_ID());
2141
  }
2142
  }
2143
 
2144
+ if ($id && $post) {
2145
  $value = get_post_meta($id, "_su_$key", true);
2146
+ $value = apply_filters("su_get_postmeta", $value, $key, $post);
2147
+ $value = apply_filters("su_get_postmeta-$key", $value, $key, $post);
2148
+ } else
2149
  $value = '';
2150
 
 
 
 
2151
  return $value;
2152
  }
2153
 
modules/meta/meta-descriptions.php CHANGED
@@ -102,7 +102,7 @@ class SU_MetaDescriptions extends SU_Module {
102
 
103
  function postmeta_fields($fields) {
104
  $id = "_su_description";
105
- $value = attribute_escape($this->get_postmeta('description'));
106
 
107
  $fields['20|description'] =
108
  "<tr class='textarea' valign='top'>\n<th scope='row'><label for='$id'>".__('Meta Description:', 'seo-ultimate')."</label></th>\n"
102
 
103
  function postmeta_fields($fields) {
104
  $id = "_su_description";
105
+ $value = su_esc_attr($this->get_postmeta('description'));
106
 
107
  $fields['20|description'] =
108
  "<tr class='textarea' valign='top'>\n<th scope='row'><label for='$id'>".__('Meta Description:', 'seo-ultimate')."</label></th>\n"
modules/site-keyword-queries/site-keyword-queries.php CHANGED
@@ -16,7 +16,7 @@ class SU_SiteKeywordQueries extends SU_Module {
16
  ?>
17
  <form method="get" action="http://www.seodesignsolutions.com/blog/ultimate-linkbuilding-toolkit/result.php" target="_blank">
18
  <input type="hidden" id="showback" name="showback" value="0" />
19
- <input type="hidden" id="queries" name="queries" value="<?php echo attribute_escape(trailingslashit(get_bloginfo('url'))); ?>" />
20
 
21
  <h3><?php _e('Step 1: Enter Keywords', 'seo-ultimate'); ?></h3>
22
  <div><textarea id="queries2" name="queries2" rows="10" cols="60"></textarea></div>
16
  ?>
17
  <form method="get" action="http://www.seodesignsolutions.com/blog/ultimate-linkbuilding-toolkit/result.php" target="_blank">
18
  <input type="hidden" id="showback" name="showback" value="0" />
19
+ <input type="hidden" id="queries" name="queries" value="<?php echo su_esc_attr(trailingslashit(get_bloginfo('url'))); ?>" />
20
 
21
  <h3><?php _e('Step 1: Enter Keywords', 'seo-ultimate'); ?></h3>
22
  <div><textarea id="queries2" name="queries2" rows="10" cols="60"></textarea></div>
modules/titles/titles.php CHANGED
@@ -245,8 +245,8 @@ class SU_Titles extends SU_Module {
245
  , '{author_firstname}' => $author['firstname']
246
  , '{author_lastname}' => $author['lastname']
247
  , '{author_nickname}' => $author['nickname']
248
- , '{query}' => attribute_escape(get_search_query())
249
- , '{ucquery}' => attribute_escape(ucwords(get_search_query()))
250
  , '{url_words}' => $this->get_url_words($_SERVER['REQUEST_URI'])
251
  );
252
 
245
  , '{author_firstname}' => $author['firstname']
246
  , '{author_lastname}' => $author['lastname']
247
  , '{author_nickname}' => $author['nickname']
248
+ , '{query}' => su_esc_attr(get_search_query())
249
+ , '{ucquery}' => su_esc_attr(ucwords(get_search_query()))
250
  , '{url_words}' => $this->get_url_words($_SERVER['REQUEST_URI'])
251
  );
252
 
plugin/class.seo-ultimate.php CHANGED
@@ -1509,10 +1509,9 @@ class SEO_Ultimate {
1509
  function remove_cron_jobs($remove_all = false) {
1510
 
1511
  $psdata = (array)get_option('seo_ultimate', array());
1512
- $crondata = $psdata['cron'];
1513
 
1514
- if (is_array($crondata)) {
1515
- $newcrondata = $crondata;
1516
 
1517
  foreach ($crondata as $key => $crons) {
1518
  if ($remove_all || !isset($this->modules[$key])) {
1509
  function remove_cron_jobs($remove_all = false) {
1510
 
1511
  $psdata = (array)get_option('seo_ultimate', array());
 
1512
 
1513
+ if (isset($psdata['cron']) && is_array($psdata['cron'])) {
1514
+ $newcrondata = $crondata = $psdata['cron'];
1515
 
1516
  foreach ($crondata as $key => $crons) {
1517
  if ($remove_all || !isset($this->modules[$key])) {
plugin/su-functions.php CHANGED
@@ -99,7 +99,7 @@ function su_lang_implode($items, $var=false, $ucwords=false) {
99
  function su_esc_attr($str) {
100
  if (!is_string($str)) return $str;
101
  $str = str_replace(array("\t", "\r\n", "\n"), ' ', $str);
102
- $str = attribute_escape($str);
103
  return $str;
104
  }
105
 
99
  function su_esc_attr($str) {
100
  if (!is_string($str)) return $str;
101
  $str = str_replace(array("\t", "\r\n", "\n"), ' ', $str);
102
+ $str = esc_attr($str);
103
  return $str;
104
  }
105
 
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.6
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
 
@@ -230,6 +230,9 @@ Frequently asked questions, settings help, and troubleshooting tips for SEO Ulti
230
 
231
  == Changelog ==
232
 
 
 
 
233
  = Version 5.6 (May 27, 2011) =
234
  * Feature: Added the Nofollow Manager module (disabled by default)
235
 
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.6.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
 
230
 
231
  == Changelog ==
232
 
233
+ = Version 5.6.1 (May 31, 2011) =
234
+ * Bugfix: Fixed many errors that appeared when WP_DEBUG mode was enabled
235
+
236
  = Version 5.6 (May 27, 2011) =
237
  * Feature: Added the Nofollow Manager module (disabled by default)
238
 
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.6
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.6
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.6');
51
  define('SU_AUTHOR', 'SEO Design Solutions');
52
  define('SU_AUTHOR_URI', 'http://www.seodesignsolutions.com/');
53
- define('SU_USER_AGENT', 'SeoUltimate/5.6');
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.6.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.6.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.6.1');
51
  define('SU_AUTHOR', 'SEO Design Solutions');
52
  define('SU_AUTHOR_URI', 'http://www.seodesignsolutions.com/');
53
+ define('SU_USER_AGENT', 'SeoUltimate/5.6.1');
54
 
55
  /********** INCLUDES **********/
56