SEO Ultimate - Version 7.6.5.1

Version Description

Download this release

Release Info

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

Code changes from version 7.6.5 to 7.6.5.1

includes/jlwp/functions.php CHANGED
@@ -108,7 +108,7 @@ class suwp {
108
  return false;
109
  }
110
 
111
- function get_term_slug($term_obj) {
112
  $tax_name = $term_obj->taxonomy;
113
  $tax_obj = get_taxonomy($tax_name);
114
  if ($tax_obj->rewrite['hierarchical']) {
108
  return false;
109
  }
110
 
111
+ static function get_term_slug($term_obj) {
112
  $tax_name = $term_obj->taxonomy;
113
  $tax_obj = get_taxonomy($tax_name);
114
  if ($tax_obj->rewrite['hierarchical']) {
modules/author-links/author-links.php CHANGED
@@ -1 +1,142 @@
1
- <?php
2
  * Author Highlighter Module
3
  *
4
  * @since 7.4
5
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  * Author Highlighter Module
2
  *
3
  * @since 7.4
4
  */
5
+ <?php
6
+ /**
7
+ * Author Highlighter Module
8
+ *
9
+ * @since 7.4
10
+ */
11
+
12
+ if (class_exists('SU_Module')) {
13
+
14
+ define('SU_AUTHORLINKS_MODE_OFF', 0);
15
+ define('SU_AUTHORLINKS_MODE_SINGLEAUTHOR', 1);
16
+ define('SU_AUTHORLINKS_MODE_MULTIAUTHOR', 2);
17
+
18
+ class SU_AuthorLinks extends SU_Module {
19
+
20
+ static function get_module_title() { return __('Author Highlighter', 'seo-ultimate'); }
21
+ static function get_menu_title() { return __('Author Highlighter', 'seo-ultimate'); }
22
+ static function get_parent_module() { return 'misc'; }
23
+ function get_settings_key() { return 'author-links'; }
24
+
25
+ function init() {
26
+ add_filter('user_contactmethods', array(&$this, 'add_google_profile_field'));
27
+ add_action('su_head', array(&$this, 'output_author_link_tags'));
28
+ }
29
+
30
+ function admin_page_contents() {
31
+
32
+ $mode = $this->get_mode();
33
+ switch ($mode) {
34
+ case SU_AUTHORLINKS_MODE_OFF:
35
+ $this->print_message('warning', __('In order for author highlighting to work, your authors with Google+ accounts need to add their Google+ URLs to their profile page on this site. Why don&#8217;t you start by adding your Google+ URL to <a href="profile.php">your profile</a>?', 'seo-ultimate'));
36
+ break;
37
+
38
+ case SU_AUTHORLINKS_MODE_SINGLEAUTHOR:
39
+ $this->child_admin_form_start();
40
+ $this->textblock(__('Since this site only has one <a href="users.php">registered user</a> who has written posts, Author Highlighter is providing that user&#8217;s Google+ profile image to Google for it to use when any page on this WordPress site appears in Google&#8217;s search result listings. If at some point you were to add an additional user to this site and that user were to write some posts, then additional options would show up in this section.', 'seo-ultimate'));
41
+ $this->child_admin_form_end();
42
+ break;
43
+
44
+ case SU_AUTHORLINKS_MODE_MULTIAUTHOR:
45
+ $users_with_gp = get_users(array(
46
+ 'fields' => array('ID', 'user_login', 'display_name')
47
+ , 'meta_key' => 'googleplus'
48
+ , 'meta_value' => ''
49
+ , 'meta_compare' => '!='
50
+ ));
51
+
52
+ $this->child_admin_form_start();
53
+
54
+ $user_dropdown_options = array('none' => __('(None)', 'seo-ultimate'));
55
+ foreach ($users_with_gp as $user) {
56
+ $user_dropdown_options[$user->ID] = $user->display_name ? $user->display_name : $user->user_login;
57
+ }
58
+
59
+ $this->dropdown('home_author', $user_dropdown_options, __('Author of Blog Homepage', 'seo-ultimate'));
60
+ $this->dropdown('archives_author', $user_dropdown_options, __('Author of Archive Pages', 'seo-ultimate'));
61
+
62
+ $this->child_admin_form_end();
63
+ break;
64
+ }
65
+ }
66
+
67
+ function get_users_with_gp() {
68
+ static $users_with_gp = null;
69
+ if ($users_with_gp === null) {
70
+ $users_with_gp = get_users(array(
71
+ 'fields' => array('ID', 'user_login', 'display_name')
72
+ , 'meta_key' => 'googleplus'
73
+ , 'meta_value' => ''
74
+ , 'meta_compare' => '!='
75
+ ));
76
+ }
77
+ return $users_with_gp;
78
+ }
79
+
80
+ function get_mode() {
81
+
82
+ if (count($this->get_users_with_gp()) > 0) {
83
+ //We have at least one user who provided a Google+ profile
84
+
85
+ if (is_multi_author())
86
+ return SU_AUTHORLINKS_MODE_MULTIAUTHOR;
87
+ else
88
+ return SU_AUTHORLINKS_MODE_SINGLEAUTHOR;
89
+
90
+ } else {
91
+ return SU_AUTHORLINKS_MODE_OFF;
92
+ }
93
+
94
+ }
95
+
96
+ function add_google_profile_field( $contactmethods ) {
97
+ $contactmethods['googleplus'] = __('Google+ Profile URL', 'seo-ultimate');
98
+ return $contactmethods;
99
+ }
100
+
101
+ function output_author_link_tags() {
102
+
103
+ if (is_404())
104
+ return;
105
+
106
+ $user_id = false;
107
+
108
+ $mode = $this->get_mode();
109
+ switch ($mode) {
110
+ case SU_AUTHORLINKS_MODE_OFF:
111
+ return;
112
+ break;
113
+ case SU_AUTHORLINKS_MODE_SINGLEAUTHOR:
114
+ $users_with_gp = (array)$this->get_users_with_gp();
115
+ $user = reset($users_with_gp);
116
+ $user_id = $user->ID;
117
+ break;
118
+ case SU_AUTHORLINKS_MODE_MULTIAUTHOR:
119
+ if (is_home()) {
120
+ $home_author = $this->get_setting('home_author', 'none');
121
+ if (is_numeric($home_author)) $user_id = $home_author;
122
+ } elseif (is_singular()) {
123
+ global $post;
124
+ if (is_object($post)) $user_id = $post->post_author;
125
+ } elseif (is_author()) {
126
+ global $wp_query;
127
+ $user_id = $wp_query->get_queried_object_id();
128
+ } elseif (is_archive()) {
129
+ $archives_author = $this->get_setting('archives_author', 'none');
130
+ if (is_numeric($archives_author)) $user_id = $archives_author;
131
+ }
132
+ break;
133
+ }
134
+
135
+ if ($user_id !== false) {
136
+ $url = get_user_meta($user_id, 'googleplus', true);
137
+ $url = su_esc_attr($url);
138
+ if ($url)
139
+ echo "\t<link rel=\"author\" href=\"$url\" />\n";
140
+ }
141
+ }
142
+
143
+ }
144
+
145
+ }
146
+ ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: SEO Design Solutions, JohnLamansky, djalexandar
3
  Tags: seo, SEO Ultimate, suite, google, yahoo, bing, search engines, admin, post, page, custom post types, categories, tags, terms, custom taxonomies, base, title, title tag, wp_title, meta, robots, noindex, nofollow, canonical, HTTP headers, 404, robots.txt, htaccess, slugs, url, anchor, more, link, excerpt, permalink, links, autolinks, code, footer, settings, redirect, 301, 302, 307, modules, uninstallable, reinstallable, downgradable, import, export, CSV, affiliate, Open Graph, og, microdata, Facebook, Twitter, Schema.org
4
  Requires at least: 3.5
5
  Tested up to: 3.9.1
6
- Stable tag: 7.6.5
7
 
8
  This all-in-one SEO plugin gives you control over title tags, noindex, meta tags, Open Graph, slugs, canonical, autolinks, 404 errors, rich snippets, and more.
9
 
@@ -11,7 +11,7 @@ This all-in-one SEO plugin gives you control over title tags, noindex, meta tags
11
 
12
  = From the Creators of SEO Ultimate =
13
 
14
- If you like SEO Ultimate, then help their creators make it better. Buy their [WordPress Theme Framework](http://www.seodesignframework.com/) today.
15
 
16
  = Recent Releases =
17
 
@@ -248,6 +248,9 @@ Frequently asked questions, settings help, and troubleshooting tips for SEO Ulti
248
 
249
  == Changelog ==
250
 
 
 
 
251
  = Version 7.6.5 (June 02, 2014) =
252
  * Bugfix: jQuery UI slider styles collision
253
  * Bugfix: Media ThickBox z-index collision removed
3
  Tags: seo, SEO Ultimate, suite, google, yahoo, bing, search engines, admin, post, page, custom post types, categories, tags, terms, custom taxonomies, base, title, title tag, wp_title, meta, robots, noindex, nofollow, canonical, HTTP headers, 404, robots.txt, htaccess, slugs, url, anchor, more, link, excerpt, permalink, links, autolinks, code, footer, settings, redirect, 301, 302, 307, modules, uninstallable, reinstallable, downgradable, import, export, CSV, affiliate, Open Graph, og, microdata, Facebook, Twitter, Schema.org
4
  Requires at least: 3.5
5
  Tested up to: 3.9.1
6
+ Stable tag: 7.6.5.1
7
 
8
  This all-in-one SEO plugin gives you control over title tags, noindex, meta tags, Open Graph, slugs, canonical, autolinks, 404 errors, rich snippets, and more.
9
 
11
 
12
  = From the Creators of SEO Ultimate =
13
 
14
+ If You Like SEO Ultimate, You're Going to Love Our [WordPress Theme Framework](http://www.seodesignframework.com/)
15
 
16
  = Recent Releases =
17
 
248
 
249
  == Changelog ==
250
 
251
+ = Version 7.6.5.1 (June 03, 2014) =
252
+ * Bugfix: Permalink Tweaker (URL Bases)
253
+
254
  = Version 7.6.5 (June 02, 2014) =
255
  * Bugfix: jQuery UI slider styles collision
256
  * Bugfix: Media ThickBox z-index collision removed
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: 7.6.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 7.6.5
16
  * @link http://www.seodesignsolutions.com/wordpress-seo/ SEO Ultimate Homepage
17
  */
18
 
@@ -48,10 +48,10 @@ define('SU_MINIMUM_WP_VER', '3.5');
48
  //Reading plugin info from constants is faster than trying to parse it from the header above.
49
  define('SU_PLUGIN_NAME', 'SEO Ultimate');
50
  define('SU_PLUGIN_URI', 'http://www.seodesignsolutions.com/wordpress-seo/');
51
- define('SU_VERSION', '7.6.5');
52
  define('SU_AUTHOR', 'SEO Design Solutions');
53
  define('SU_AUTHOR_URI', 'http://www.seodesignframework.com/');
54
- define('SU_USER_AGENT', 'SeoUltimate/7.6.5');
55
 
56
  /********** INCLUDES **********/
57
 
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: 7.6.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 7.6.5.1
16
  * @link http://www.seodesignsolutions.com/wordpress-seo/ SEO Ultimate Homepage
17
  */
18
 
48
  //Reading plugin info from constants is faster than trying to parse it from the header above.
49
  define('SU_PLUGIN_NAME', 'SEO Ultimate');
50
  define('SU_PLUGIN_URI', 'http://www.seodesignsolutions.com/wordpress-seo/');
51
+ define('SU_VERSION', '7.6.5.1');
52
  define('SU_AUTHOR', 'SEO Design Solutions');
53
  define('SU_AUTHOR_URI', 'http://www.seodesignframework.com/');
54
+ define('SU_USER_AGENT', 'SeoUltimate/7.6.5.1');
55
 
56
  /********** INCLUDES **********/
57