SEO Ultimate - Version 2.3

Version Description

Download this release

Release Info

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

Code changes from version 2.2 to 2.3

modules/meta/meta.php CHANGED
@@ -94,12 +94,12 @@ class SU_Meta extends SU_Module {
94
  $value = attribute_escape($this->get_postmeta('description'));
95
 
96
  $fields['20|description|keywords'] =
97
- "<tr class='textarea'>\n<th scope='row'><label for='$id'>".__("Description:", 'seo-ultimate')."</label></th>\n"
98
  . "<td><textarea name='$id' id='$id' type='text' class='regular-text' cols='60' rows='3' tabindex='2'"
99
  . " onkeyup=\"javascript:document.getElementById('su_meta_description_charcount').innerHTML = document.getElementById('_su_description').value.length\">$value</textarea>"
100
  . "<br />".sprintf(__("You&#8217;ve entered %s characters. Most search engines use up to 160.", 'seo-ultimate'), "<strong id='su_meta_description_charcount'>".strlen($value)."</strong>")
101
  . "</td>\n</tr>\n"
102
- . $this->get_postmeta_textbox('keywords', __('Keywords:<br /><em>(separate with commas)</em>', 'seo-ultimate'))
103
  ;
104
 
105
  return $fields;
94
  $value = attribute_escape($this->get_postmeta('description'));
95
 
96
  $fields['20|description|keywords'] =
97
+ "<tr class='textarea'>\n<th scope='row'><label for='$id'>".__('Meta Description:', 'seo-ultimate')."</label></th>\n"
98
  . "<td><textarea name='$id' id='$id' type='text' class='regular-text' cols='60' rows='3' tabindex='2'"
99
  . " onkeyup=\"javascript:document.getElementById('su_meta_description_charcount').innerHTML = document.getElementById('_su_description').value.length\">$value</textarea>"
100
  . "<br />".sprintf(__("You&#8217;ve entered %s characters. Most search engines use up to 160.", 'seo-ultimate'), "<strong id='su_meta_description_charcount'>".strlen($value)."</strong>")
101
  . "</td>\n</tr>\n"
102
+ . $this->get_postmeta_textbox('keywords', __('Meta Keywords:<br /><em>(separate with commas)</em>', 'seo-ultimate'))
103
  ;
104
 
105
  return $fields;
modules/noindex/noindex.php CHANGED
@@ -14,7 +14,7 @@ class SU_Noindex extends SU_Module {
14
  function init() {
15
 
16
  //Hook into our wp_head() action
17
- add_action('su_meta_robots', array(&$this, 'wphead_noindex'), 1);
18
 
19
  //Now we'll hook into places where wp_head() is not called
20
 
@@ -54,15 +54,21 @@ class SU_Noindex extends SU_Module {
54
  $this->admin_form_end();
55
  }
56
 
57
- function wphead_noindex($commands) {
58
-
59
- if ($this->should_noindex())
60
- array_push($commands, 'noindex', 'nofollow');
61
-
 
 
 
 
 
62
  return $commands;
63
  }
64
 
65
  function should_noindex() {
 
66
 
67
  $checks = array('author', 'search', 'category', 'date', 'tag');
68
 
@@ -80,6 +86,12 @@ class SU_Noindex extends SU_Module {
80
  return false;
81
  }
82
 
 
 
 
 
 
 
83
  function rss2_noindex_tag() {
84
  echo "<xhtml:meta xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" name=\"robots\" content=\"noindex\" />\n";
85
  }
@@ -87,6 +99,15 @@ class SU_Noindex extends SU_Module {
87
  function xhtml_noindex_tag() {
88
  echo "\t<meta name=\"robots\" content=\"noindex\" />\n";
89
  }
 
 
 
 
 
 
 
 
 
90
  }
91
 
92
  }
14
  function init() {
15
 
16
  //Hook into our wp_head() action
17
+ add_action('su_meta_robots', array(&$this, 'wphead_meta_robots'), 1);
18
 
19
  //Now we'll hook into places where wp_head() is not called
20
 
54
  $this->admin_form_end();
55
  }
56
 
57
+ function wphead_meta_robots($commands) {
58
+
59
+ $new = array(
60
+ $this->should_noindex() ? 'noindex' : 'index'
61
+ , $this->should_nofollow() ? 'nofollow' : 'follow'
62
+ );
63
+
64
+ if ($new != array('index', 'follow'))
65
+ $commands = array_merge($commands, $new);
66
+
67
  return $commands;
68
  }
69
 
70
  function should_noindex() {
71
+ if ($this->get_postmeta('meta_robots_noindex')) return true;
72
 
73
  $checks = array('author', 'search', 'category', 'date', 'tag');
74
 
86
  return false;
87
  }
88
 
89
+ function should_nofollow() {
90
+ if ($this->get_postmeta('meta_robots_nofollow')) return true;
91
+
92
+ return false;
93
+ }
94
+
95
  function rss2_noindex_tag() {
96
  echo "<xhtml:meta xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" name=\"robots\" content=\"noindex\" />\n";
97
  }
99
  function xhtml_noindex_tag() {
100
  echo "\t<meta name=\"robots\" content=\"noindex\" />\n";
101
  }
102
+
103
+ function postmeta_fields($fields) {
104
+ $fields['30|meta_robots_noindex|meta_robots_nofollow'] = $this->get_postmeta_checkboxes(array(
105
+ 'meta_robots_noindex' => __('Noindex: Tell search engines not to index this webpage.', 'seo-ultimate')
106
+ , 'meta_robots_nofollow' => __('Nofollow: Tell search engines not to spider links on this webpage.', 'seo-ultimate')
107
+ ), __('Meta Robots Tag:', 'seo-ultimate'));
108
+
109
+ return $fields;
110
+ }
111
  }
112
 
113
  }
plugin/global.css CHANGED
@@ -120,10 +120,14 @@ div.su-help h6 {
120
  padding-right: 0.5em;
121
  }
122
 
123
- #su-postmeta-box table tr.textarea {
124
  vertical-align: top;
125
  }
126
 
 
 
 
 
127
  #su-postmeta-box table tr.textarea th label {
128
  display: block;
129
  margin-top: 5px;
120
  padding-right: 0.5em;
121
  }
122
 
123
+ #su-postmeta-box table tr {
124
  vertical-align: top;
125
  }
126
 
127
+ #su-postmeta-box table tr.textbox {
128
+ vertical-align: middle;
129
+ }
130
+
131
  #su-postmeta-box table tr.textarea th label {
132
  display: block;
133
  margin-top: 5px;
readme.txt CHANGED
@@ -1,19 +1,19 @@
1
  === SEO Ultimate ===
2
  Contributors: SEO Design Solutions
3
- Tags: seo, google, yahoo, bing, search engines, admin, post, page, modules, title, meta, noindex, canonical, 404, robots.txt, htaccess, slugs, url, anchor, more, link, excerpt, permalink, links, autolinks, categories, uninstallable
4
  Requires at least: 2.8
5
  Tested up to: 2.9
6
- Stable tag: 2.2
7
 
8
- This all-in-one SEO plugin gives you control over titles, noindex, meta data, slugs, canonical tags, "more" links, 404 error tracking, and more.
9
 
10
  == Description ==
11
 
12
  = Recent Releases =
13
 
 
14
  * Version 2.2 adds a links-per-post limiter for Deeplink Juggernaut
15
  * Version 2.1 adds a 404 Monitor overhaul and other improvements
16
- * Version 2.0 adds title tag editing for post tags
17
 
18
  = Features =
19
 
@@ -21,12 +21,13 @@ SEO Ultimate is an all-in-one [SEO](http://www.seodesignsolutions.com/) plugin w
21
 
22
  * **Title Rewriter**
23
  * Out-of-the-box functionality puts your post titles at the beginning of the `<title>` tag where they belong.
24
- * Easily override the entire `<title>` tag contents for any individual post, Page, category, or post tag on your blog.
25
  * Customize your homepage's `<title>` tag.
26
  * Format the `<title>` tags of posts, pages, categories, tags, archives, search results, and more!
27
 
28
- * **Noindex Manager**
29
- * Add the `<meta name="robots" content="noindex" />` tag to archives, comment feeds, the login page, and more.
 
30
  * Avoid duplicate content issues with the recommended settings.
31
 
32
  * **Meta Editor**
@@ -586,6 +587,10 @@ Frequently asked questions, documentation, and troubleshooting tips for SEO Ulti
586
 
587
  == Changelog ==
588
 
 
 
 
 
589
  = Version 2.2 (May 24, 2010) =
590
  * Feature: Deeplink Juggernaut now has a links-per-post limiter option
591
  * Bugfix: The current tab is now maintained when submitting a tabbed form twice in a row
1
  === SEO Ultimate ===
2
  Contributors: SEO Design Solutions
3
+ Tags: seo, google, yahoo, bing, search engines, admin, post, page, modules, title, meta, robots, noindex, nofollow, canonical, 404, robots.txt, htaccess, slugs, url, anchor, more, link, excerpt, permalink, links, autolinks, categories, uninstallable
4
  Requires at least: 2.8
5
  Tested up to: 2.9
6
+ Stable tag: 2.3
7
 
8
+ This all-in-one SEO plugin gives you control over titles, noindex/nofollow, meta tags, slugs, canonical tags, "more" links, 404 errors, and more.
9
 
10
  == Description ==
11
 
12
  = Recent Releases =
13
 
14
+ * Version 2.3 adds per-post noindex/nofollow toggles
15
  * Version 2.2 adds a links-per-post limiter for Deeplink Juggernaut
16
  * Version 2.1 adds a 404 Monitor overhaul and other improvements
 
17
 
18
  = Features =
19
 
21
 
22
  * **Title Rewriter**
23
  * Out-of-the-box functionality puts your post titles at the beginning of the `<title>` tag where they belong.
24
+ * Easily override the entire `<title>` tag contents for any individual post, page, category, or post tag on your blog.
25
  * Customize your homepage's `<title>` tag.
26
  * Format the `<title>` tags of posts, pages, categories, tags, archives, search results, and more!
27
 
28
+ * **Noindex Manager** -- UPDATED in Version 2.3
29
+ * Add the `<meta name="robots" content="noindex,follow" />` tag to archives, comment feeds, the login page, and more.
30
+ * Set meta robots tags (index/noindex and follow/nofollow) for each individual post/page.
31
  * Avoid duplicate content issues with the recommended settings.
32
 
33
  * **Meta Editor**
587
 
588
  == Changelog ==
589
 
590
+ = Version 2.3 (May 26, 2010) =
591
+ * Feature: Meta robots tags (index/noindex and follow/nofollow) can now be set for each post or page via the "SEO Settings" box
592
+ * Behavior Change: Since the Noindex Manager's advertised functionality is controlling the "noindex" attribute only, its behavior has been changed to output "noindex,follow" where it previously outputted "noindex,nofollow"
593
+
594
  = Version 2.2 (May 24, 2010) =
595
  * Feature: Deeplink Juggernaut now has a links-per-post limiter option
596
  * Bugfix: The current tab is now maintained when submitting a tabbed form twice in a row
seo-ultimate.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
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, meta data, slugs, canonical tags, "more" links, 404 error tracking, and more.
6
- Version: 2.2
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 2.2
16
  * @link http://www.seodesignsolutions.com/wordpress-seo/ SEO Ultimate Homepage
17
  */
18
 
@@ -38,10 +38,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
38
  //Reading plugin info from constants is faster than trying to parse it from the header above.
39
  define("SU_PLUGIN_NAME", "SEO Ultimate");
40
  define("SU_PLUGIN_URI", "http://www.seodesignsolutions.com/wordpress-seo/");
41
- define("SU_VERSION", "2.2");
42
  define("SU_AUTHOR", "SEO Design Solutions");
43
  define("SU_AUTHOR_URI", "http://www.seodesignsolutions.com/");
44
- define("SU_USER_AGENT", "SeoUltimate/2.2");
45
 
46
  /********** INCLUDES **********/
47
 
2
  /*
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, slugs, canonical tags, "more" links, 404 errors, and more.
6
+ Version: 2.3
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 2.3
16
  * @link http://www.seodesignsolutions.com/wordpress-seo/ SEO Ultimate Homepage
17
  */
18
 
38
  //Reading plugin info from constants is faster than trying to parse it from the header above.
39
  define("SU_PLUGIN_NAME", "SEO Ultimate");
40
  define("SU_PLUGIN_URI", "http://www.seodesignsolutions.com/wordpress-seo/");
41
+ define("SU_VERSION", "2.3");
42
  define("SU_AUTHOR", "SEO Design Solutions");
43
  define("SU_AUTHOR_URI", "http://www.seodesignsolutions.com/");
44
+ define("SU_USER_AGENT", "SeoUltimate/2.3");
45
 
46
  /********** INCLUDES **********/
47