SEO Ultimate - Version 5.9

Version Description

Download this release

Release Info

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

Code changes from version 5.8 to 5.9

includes/jlwp/functions.php CHANGED
@@ -132,6 +132,7 @@ class suwp {
132
  * @return object $rss The RSS object.
133
  */
134
  function load_rss($url, $ua) {
 
135
  $uafunc = create_function('', "return '$ua';");
136
  add_filter('http_headers_useragent', $uafunc);
137
  require_once (ABSPATH . WPINC . '/rss.php');
132
  * @return object $rss The RSS object.
133
  */
134
  function load_rss($url, $ua) {
135
+ $ua = addslashes($ua);
136
  $uafunc = create_function('', "return '$ua';");
137
  add_filter('http_headers_useragent', $uafunc);
138
  require_once (ABSPATH . WPINC . '/rss.php');
modules/meta/meta-descriptions.php CHANGED
@@ -37,14 +37,18 @@ class SU_MetaDescriptions extends SU_Module {
37
  return array(
38
  'home_description_tagline_default' => true
39
  , 'description_posttype_post' => '{excerpt}'
 
 
40
  );
41
  }
42
 
43
  function formats_tab() {
44
  $this->admin_form_table_start();
45
  $this->textboxes(array(
46
- 'description_posttype_post' => __('Post Description Format', 'seo-ultimate')
47
- ));
 
 
48
  $this->admin_form_table_end();
49
  }
50
 
@@ -90,8 +94,17 @@ class SU_MetaDescriptions extends SU_Module {
90
  } elseif (is_category() || is_tag() || is_tax()) {
91
  global $wp_query;
92
  $tax_descriptions = $this->get_setting('taxonomy_descriptions');
93
- $tax_id = $wp_query->get_queried_object_id();
94
- $desc = isset($tax_descriptions[$tax_id]) ? $tax_descriptions[$tax_id] : '';
 
 
 
 
 
 
 
 
 
95
  }
96
 
97
  //Do we have a description? If so, output it.
37
  return array(
38
  'home_description_tagline_default' => true
39
  , 'description_posttype_post' => '{excerpt}'
40
+ , 'description_taxonomy_category' => '{description}'
41
+ , 'description_taxonomy_post_tag' => '{description}'
42
  );
43
  }
44
 
45
  function formats_tab() {
46
  $this->admin_form_table_start();
47
  $this->textboxes(array(
48
+ 'description_posttype_post' => __('Post Description Format', 'seo-ultimate')
49
+ , 'description_taxonomy_category' => __('Category Description Format', 'seo-ultimate')
50
+ , 'description_taxonomy_post_tag' => __('Post Tag Description Format', 'seo-ultimate')
51
+ ), $this->get_default_settings());
52
  $this->admin_form_table_end();
53
  }
54
 
94
  } elseif (is_category() || is_tag() || is_tax()) {
95
  global $wp_query;
96
  $tax_descriptions = $this->get_setting('taxonomy_descriptions');
97
+ $term_id = $wp_query->get_queried_object_id();
98
+ $term_obj = $wp_query->get_queried_object();
99
+ $desc = isset($tax_descriptions[$term_id]) ? $tax_descriptions[$term_id] : '';
100
+
101
+ if (!trim($desc) && $format = $this->get_setting('description_taxonomy_'.$term_obj->taxonomy)) {
102
+
103
+ $desc = str_replace(
104
+ array('{description}')
105
+ , array($term_obj->description)
106
+ , $format);
107
+ }
108
  }
109
 
110
  //Do we have a description? If so, output it.
modules/meta/meta-keywords.php CHANGED
@@ -32,7 +32,7 @@ class SU_MetaKeywords extends SU_Module {
32
  __('Default Values', 'seo-ultimate') => 'defaults_tab'
33
  , __('Blog Homepage', 'seo-ultimate') => 'home_tab'
34
  )
35
- , $this->get_postmeta_edit_tabs(array(
36
  'type' => 'textbox'
37
  , 'name' => 'keywords'
38
  , 'term_settings_key' => 'taxonomy_keywords'
32
  __('Default Values', 'seo-ultimate') => 'defaults_tab'
33
  , __('Blog Homepage', 'seo-ultimate') => 'home_tab'
34
  )
35
+ , $this->get_meta_edit_tabs(array(
36
  'type' => 'textbox'
37
  , 'name' => 'keywords'
38
  , 'term_settings_key' => 'taxonomy_keywords'
modules/sds-blog/sds-blog.php CHANGED
@@ -83,15 +83,15 @@ class SU_SdsBlog extends SU_Module {
83
  function get_feed_item_date($item) {
84
 
85
  //Is there an Atom date? If so, parse it.
86
- if ($atom_date = $item['issued'])
87
  $date = parse_w3cdtf($atom_date);
88
 
89
  //Or is there an RSS2 date? If so, parse it.
90
- elseif ($rss_2_date = $item['pubdate'])
91
  $date = strtotime($rss_2_date);
92
 
93
  //Or is there an RSS1 date? If so, parse it.
94
- elseif ($rss_1_date = $item['dc']['date'])
95
  $date = parse_w3cdtf($rss_1_date);
96
 
97
  else $date = null;
83
  function get_feed_item_date($item) {
84
 
85
  //Is there an Atom date? If so, parse it.
86
+ if (isset($item['issued']) && $atom_date = $item['issued'])
87
  $date = parse_w3cdtf($atom_date);
88
 
89
  //Or is there an RSS2 date? If so, parse it.
90
+ elseif (isset($item['pubdate']) && $rss_2_date = $item['pubdate'])
91
  $date = strtotime($rss_2_date);
92
 
93
  //Or is there an RSS1 date? If so, parse it.
94
+ elseif (isset($item['dc']['date']) && $rss_1_date = $item['dc']['date'])
95
  $date = parse_w3cdtf($rss_1_date);
96
 
97
  else $date = null;
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, base, 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.8
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
 
@@ -11,11 +11,11 @@ This all-in-one SEO plugin gives you control over title tags, noindex, meta tags
11
 
12
  = Recent Releases =
13
 
 
14
  * Version 5.8 adds the Permalink Tweaker module
15
  * Version 5.7 adds mass-editing for post format archives
16
  * Version 5.6 adds the Nofollow Manager module
17
  * Version 5.5 adds noindex/nofollow mass-editing for categories/tags/terms
18
- * Version 5.4 adds noindex/nofollow mass-editing for posts/pages
19
 
20
  = Features =
21
 
@@ -27,7 +27,7 @@ SEO Ultimate is an all-in-one [SEO](http://www.seodesignsolutions.com/) plugin w
27
  * Customize your homepage's `<title>` tag.
28
  * Format the `<title>` tags of posts, pages, categories, tags, archives, search results, and more!
29
 
30
- * **Meta Description Editor**
31
  * Edit the `<meta>` description tags for posts, pages, attachments, categories, tags, post format archives, and the homepage.
32
  * Increase SERP clickthrough rates by influencing search engine result snippets.
33
  * Mass-editor makes it a cinch to go back and add descriptions to old posts.
@@ -232,6 +232,12 @@ Frequently asked questions, settings help, and troubleshooting tips for SEO Ulti
232
 
233
  == Changelog ==
234
 
 
 
 
 
 
 
235
  = Version 5.8 (June 3, 2011) =
236
  * Feature: Added the Permalink Tweaker module, which lets you remove permalink bases for categories, tags, and/or custom taxonomies
237
  * Improvement: Module pages with few settings have been grouped into a new "Miscellaneous" admin page (to turn off this behavior, disable the Miscellaneous module in the Module Manager)
3
  Tags: seo, SEO Ultimate, suite, google, yahoo, bing, search engines, admin, post, page, custom post types, categories, tags, terms, custom taxonomies, base, 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.9
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
 
11
 
12
  = Recent Releases =
13
 
14
+ * Version 5.9 adds default category/tag meta description formats
15
  * Version 5.8 adds the Permalink Tweaker module
16
  * Version 5.7 adds mass-editing for post format archives
17
  * Version 5.6 adds the Nofollow Manager module
18
  * Version 5.5 adds noindex/nofollow mass-editing for categories/tags/terms
 
19
 
20
  = Features =
21
 
27
  * Customize your homepage's `<title>` tag.
28
  * Format the `<title>` tags of posts, pages, categories, tags, archives, search results, and more!
29
 
30
+ * **Meta Description Editor** -- UPDATED in Version 5.9
31
  * Edit the `<meta>` description tags for posts, pages, attachments, categories, tags, post format archives, and the homepage.
32
  * Increase SERP clickthrough rates by influencing search engine result snippets.
33
  * Mass-editor makes it a cinch to go back and add descriptions to old posts.
232
 
233
  == Changelog ==
234
 
235
+ = Version 5.9 (June 17, 2011) =
236
+ * Feature: Meta Description Editor now supports default formats for category/tag archives, starting with support for the `{description}` variable.
237
+ * Feature: Meta Keywords Editor now has mass-editors for categories, tags, post format archives, and custom taxonomy term archives
238
+ * Improvement: Added "Reset" links to the format textboxes in Meta Description Editor
239
+ * Bugfix: Fixed Whitepapers module errors that appeared with WP_DEBUG mode enabled
240
+
241
  = Version 5.8 (June 3, 2011) =
242
  * Feature: Added the Permalink Tweaker module, which lets you remove permalink bases for categories, tags, and/or custom taxonomies
243
  * Improvement: Module pages with few settings have been grouped into a new "Miscellaneous" admin page (to turn off this behavior, disable the Miscellaneous module in the Module Manager)
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.8
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.8
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.8');
51
  define('SU_AUTHOR', 'SEO Design Solutions');
52
  define('SU_AUTHOR_URI', 'http://www.seodesignsolutions.com/');
53
- define('SU_USER_AGENT', 'SeoUltimate/5.8');
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.9
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.9
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.9');
51
  define('SU_AUTHOR', 'SEO Design Solutions');
52
  define('SU_AUTHOR_URI', 'http://www.seodesignsolutions.com/');
53
+ define('SU_USER_AGENT', 'SeoUltimate/5.9');
54
 
55
  /********** INCLUDES **********/
56