Version Description
Download this release
Release Info
Developer | SEO Design Solutions |
Plugin | SEO Ultimate |
Version | 1.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.7 to 1.7.1
- includes/index.php +4 -0
- includes/jlfunctions/index.php +4 -0
- includes/jlfunctions/jlfunctions.php +3 -5
- includes/jlwp/index.php +4 -0
- includes/jlwp/jlwp.php +2 -2
- includes/markdown/index.php +4 -0
- modules/class.su-module.php +4 -4
- modules/modules/modules.php +10 -8
- modules/settings/settings.php +2 -4
- plugin/class.seo-ultimate.php +7 -5
- plugin/global.css +4 -3
- plugin/index.php +4 -0
- readme.txt +12 -1
- seo-ultimate.php +4 -4
includes/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Status: 403 Forbidden');
|
3 |
+
header('HTTP/1.1 403 Forbidden');
|
4 |
+
?>
|
includes/jlfunctions/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Status: 403 Forbidden');
|
3 |
+
header('HTTP/1.1 403 Forbidden');
|
4 |
+
?>
|
includes/jlfunctions/jlfunctions.php
CHANGED
@@ -4,10 +4,8 @@ JLFunctions Library
|
|
4 |
Copyright (c)2009-2010 John Lamansky
|
5 |
*/
|
6 |
|
7 |
-
|
8 |
-
include
|
9 |
-
|
10 |
-
include 'str.php';
|
11 |
-
include 'url.php';
|
12 |
|
13 |
?>
|
4 |
Copyright (c)2009-2010 John Lamansky
|
5 |
*/
|
6 |
|
7 |
+
foreach (array('arr', 'io', 'md', 'str', 'url') as $file) {
|
8 |
+
include dirname(__FILE__)."/$file.php";
|
9 |
+
}
|
|
|
|
|
10 |
|
11 |
?>
|
includes/jlwp/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Status: 403 Forbidden');
|
3 |
+
header('HTTP/1.1 403 Forbidden');
|
4 |
+
?>
|
includes/jlwp/jlwp.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
include 'functions.php';
|
4 |
-
include 'screen-meta.php';
|
5 |
|
6 |
?>
|
1 |
<?php
|
2 |
|
3 |
+
include dirname(__FILE__).'/functions.php';
|
4 |
+
include dirname(__FILE__).'/screen-meta.php';
|
5 |
|
6 |
?>
|
includes/markdown/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Status: 403 Forbidden');
|
3 |
+
header('HTTP/1.1 403 Forbidden');
|
4 |
+
?>
|
modules/class.su-module.php
CHANGED
@@ -110,7 +110,7 @@ class SU_Module {
|
|
110 |
*
|
111 |
* @return string
|
112 |
*/
|
113 |
-
function get_module_subtitle() { return $this->get_module_title(); }
|
114 |
|
115 |
/**
|
116 |
* The title of the admin page, which is displayed in the <title> and <h2> tags.
|
@@ -120,7 +120,7 @@ class SU_Module {
|
|
120 |
*
|
121 |
* @return string The title shown on this module's admin page.
|
122 |
*/
|
123 |
-
function get_page_title() { return $this->get_module_title(); }
|
124 |
|
125 |
/**
|
126 |
* The title that appears on the administration navigation menu.
|
@@ -129,7 +129,7 @@ class SU_Module {
|
|
129 |
*
|
130 |
* @return string The title shown on the admin menu.
|
131 |
*/
|
132 |
-
function get_menu_title() { return $this->get_module_title(); }
|
133 |
|
134 |
/**
|
135 |
* Determines where this module's admin page should appear relative to those of other modules.
|
@@ -399,7 +399,7 @@ class SU_Module {
|
|
399 |
}
|
400 |
|
401 |
$basepage = 'admin.php';
|
402 |
-
if (
|
403 |
$basepage = $custom_basepage;
|
404 |
|
405 |
return admin_url($basepage.'?page='.$this->plugin->key_to_hook($key).$anchor);
|
110 |
*
|
111 |
* @return string
|
112 |
*/
|
113 |
+
function get_module_subtitle() { return isset($this) ? $this->get_module_title() : ''; }
|
114 |
|
115 |
/**
|
116 |
* The title of the admin page, which is displayed in the <title> and <h2> tags.
|
120 |
*
|
121 |
* @return string The title shown on this module's admin page.
|
122 |
*/
|
123 |
+
function get_page_title() { return isset($this) ? $this->get_module_title() : ''; }
|
124 |
|
125 |
/**
|
126 |
* The title that appears on the administration navigation menu.
|
129 |
*
|
130 |
* @return string The title shown on the admin menu.
|
131 |
*/
|
132 |
+
function get_menu_title() { return isset($this) ? $this->get_module_title() : ''; }
|
133 |
|
134 |
/**
|
135 |
* Determines where this module's admin page should appear relative to those of other modules.
|
399 |
}
|
400 |
|
401 |
$basepage = 'admin.php';
|
402 |
+
if ($this->plugin->call_module_func($key, 'get_menu_parent', $custom_basepage) && sustr::endswith($custom_basepage, '.php'))
|
403 |
$basepage = $custom_basepage;
|
404 |
|
405 |
return admin_url($basepage.'?page='.$this->plugin->key_to_hook($key).$anchor);
|
modules/modules/modules.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Module Manager Module
|
4 |
*
|
5 |
-
* @version 1.2
|
6 |
* @since 0.7
|
7 |
*/
|
8 |
|
@@ -70,10 +70,12 @@ STR;
|
|
70 |
}
|
71 |
|
72 |
foreach ($this->plugin->disabled_modules as $key => $class) {
|
73 |
-
|
74 |
-
if (call_user_func(array($class, 'is_independent_module')))
|
75 |
-
$
|
76 |
-
|
|
|
|
|
77 |
}
|
78 |
|
79 |
asort($modules);
|
@@ -91,7 +93,7 @@ STR;
|
|
91 |
|
92 |
$currentstatus = $this->plugin->dbdata['modules'][$key];
|
93 |
|
94 |
-
echo "\t\t<tr>\n\t\t\t<td class='module-status' id='
|
95 |
echo "\t\t\t\t<input type='hidden' name='su-$key-module-status' id='su-$key-module-status' value='$currentstatus' />\n";
|
96 |
|
97 |
foreach ($statuses as $statuscode => $statuslabel) {
|
@@ -177,8 +179,8 @@ STR;
|
|
177 |
?>
|
178 |
|
179 |
function set_module_status(key, input_value, a_obj) {
|
180 |
-
var td_id =
|
181 |
-
var input_id = "su-"+
|
182 |
|
183 |
jQuery("td#"+td_id+" a").removeClass("current");
|
184 |
document.getElementById(input_id).value = input_value;
|
2 |
/**
|
3 |
* Module Manager Module
|
4 |
*
|
5 |
+
* @version 1.2.1
|
6 |
* @since 0.7
|
7 |
*/
|
8 |
|
70 |
}
|
71 |
|
72 |
foreach ($this->plugin->disabled_modules as $key => $class) {
|
73 |
+
|
74 |
+
if (call_user_func(array($class, 'is_independent_module'))) {
|
75 |
+
$title = call_user_func(array($class, 'get_page_title'));
|
76 |
+
if (!$title) $title = call_user_func(array($class, 'get_module_title'));
|
77 |
+
$modules[$key] = $title;
|
78 |
+
}
|
79 |
}
|
80 |
|
81 |
asort($modules);
|
93 |
|
94 |
$currentstatus = $this->plugin->dbdata['modules'][$key];
|
95 |
|
96 |
+
echo "\t\t<tr>\n\t\t\t<td class='module-status' id='module-status-$key'>\n";
|
97 |
echo "\t\t\t\t<input type='hidden' name='su-$key-module-status' id='su-$key-module-status' value='$currentstatus' />\n";
|
98 |
|
99 |
foreach ($statuses as $statuscode => $statuslabel) {
|
179 |
?>
|
180 |
|
181 |
function set_module_status(key, input_value, a_obj) {
|
182 |
+
var td_id = "module-status-"+key;
|
183 |
+
var input_id = "su-"+key+"-module-status";
|
184 |
|
185 |
jQuery("td#"+td_id+" a").removeClass("current");
|
186 |
document.getElementById(input_id).value = input_value;
|
modules/settings/settings.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* SEO Ultimate Plugin Settings Module
|
4 |
*
|
5 |
-
* @version 2.3
|
6 |
* @since 0.2
|
7 |
*/
|
8 |
|
@@ -19,9 +19,7 @@ class SU_Settings extends SU_Module {
|
|
19 |
|
20 |
function get_default_settings() {
|
21 |
return array(
|
22 |
-
'
|
23 |
-
, 'attribution_link_css' => true
|
24 |
-
, 'plugin_notices' => true
|
25 |
, 'log_hits' => true
|
26 |
, 'delete_old_hits_value' => 30
|
27 |
);
|
2 |
/**
|
3 |
* SEO Ultimate Plugin Settings Module
|
4 |
*
|
5 |
+
* @version 2.3.1
|
6 |
* @since 0.2
|
7 |
*/
|
8 |
|
19 |
|
20 |
function get_default_settings() {
|
21 |
return array(
|
22 |
+
'plugin_notices' => true
|
|
|
|
|
23 |
, 'log_hits' => true
|
24 |
, 'delete_old_hits_value' => 30
|
25 |
);
|
plugin/class.seo-ultimate.php
CHANGED
@@ -227,9 +227,11 @@ class SEO_Ultimate {
|
|
227 |
add_action('in_plugin_update_message-'.plugin_basename($this->plugin_file_path), array(&$this, 'plugin_update_info'), 10, 2);
|
228 |
|
229 |
//Log this visitor!
|
230 |
-
|
231 |
-
|
232 |
-
|
|
|
|
|
233 |
}
|
234 |
|
235 |
/**
|
@@ -834,7 +836,7 @@ class SEO_Ultimate {
|
|
834 |
|
835 |
//If we have alerts that need a bubble, then return the bubble HTML.
|
836 |
if ($count > 0)
|
837 |
-
return " <span
|
838 |
else
|
839 |
return '';
|
840 |
}
|
@@ -1125,7 +1127,7 @@ class SEO_Ultimate {
|
|
1125 |
if (isset($this->modules[$key]))
|
1126 |
$obj =& $this->modules[$key];
|
1127 |
elseif (isset($this->disabled_modules[$key]))
|
1128 |
-
$obj = $key;
|
1129 |
else
|
1130 |
return false;
|
1131 |
|
227 |
add_action('in_plugin_update_message-'.plugin_basename($this->plugin_file_path), array(&$this, 'plugin_update_info'), 10, 2);
|
228 |
|
229 |
//Log this visitor!
|
230 |
+
if ($this->get_setting('log_hits', true, 'settings')) {
|
231 |
+
add_filter('redirect_canonical', array(&$this, 'log_redirect_canonical'));
|
232 |
+
add_filter('wp_redirect', array(&$this, 'log_redirect'), 10, 2);
|
233 |
+
add_filter('status_header', array(&$this, 'log_hit'), 10, 2);
|
234 |
+
}
|
235 |
}
|
236 |
|
237 |
/**
|
836 |
|
837 |
//If we have alerts that need a bubble, then return the bubble HTML.
|
838 |
if ($count > 0)
|
839 |
+
return " <span class='update-plugins count-$count'><span class='plugin-count'>".number_format_i18n($count)."</span></span>";
|
840 |
else
|
841 |
return '';
|
842 |
}
|
1127 |
if (isset($this->modules[$key]))
|
1128 |
$obj =& $this->modules[$key];
|
1129 |
elseif (isset($this->disabled_modules[$key]))
|
1130 |
+
$obj = $this->disabled_modules[$key];
|
1131 |
else
|
1132 |
return false;
|
1133 |
|
plugin/global.css
CHANGED
@@ -5,13 +5,14 @@ These styles are sometimes or always referenced outside of SEO Ultimate's admin
|
|
5 |
|
6 |
/* MENU */
|
7 |
|
8 |
-
.toplevel_page_seo
|
|
|
9 |
background-image: url(images/icon.png);
|
10 |
background-position: -1px -33px;
|
11 |
}
|
12 |
|
13 |
-
.toplevel_page_seo:hover div.wp-menu-image,
|
14 |
-
#toplevel_page_seo .wp-has-current-submenu div.wp-menu-image {
|
15 |
background-position: -1px -1px;
|
16 |
}
|
17 |
|
5 |
|
6 |
/* MENU */
|
7 |
|
8 |
+
/* We need the #wpwrap so that we don't match body.toplevel_page_seo */
|
9 |
+
#wpwrap .toplevel_page_seo div.wp-menu-image {
|
10 |
background-image: url(images/icon.png);
|
11 |
background-position: -1px -33px;
|
12 |
}
|
13 |
|
14 |
+
#wpwrap .toplevel_page_seo:hover div.wp-menu-image,
|
15 |
+
#wpwrap #toplevel_page_seo .wp-has-current-submenu div.wp-menu-image {
|
16 |
background-position: -1px -1px;
|
17 |
}
|
18 |
|
plugin/index.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Status: 403 Forbidden');
|
3 |
+
header('HTTP/1.1 403 Forbidden');
|
4 |
+
?>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 2.9
|
6 |
-
Stable tag: 1.7
|
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 |
|
@@ -575,6 +575,17 @@ Frequently asked questions, documentation, and troubleshooting tips for SEO Ulti
|
|
575 |
|
576 |
== Changelog ==
|
577 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
= Version 1.7 (February 20, 2010) =
|
579 |
* Feature: Displays admin notices if blog privacy settings are configured to block search engines
|
580 |
|
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
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 2.9
|
6 |
+
Stable tag: 1.7.1
|
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 |
|
575 |
|
576 |
== Changelog ==
|
577 |
|
578 |
+
= Version 1.7.1 (February 27, 2010) =
|
579 |
+
* Bugfix: Fixed conflict with Flexibility theme
|
580 |
+
* Bugfix: Comment administration no longer alters SEO Ultimate menu bubble counters
|
581 |
+
* Bugfix: SEO Ultimate menu icon is no longer accidentially added to other plugins' menus
|
582 |
+
* Bugfix: Disabling visitor logging now disables all related code as well
|
583 |
+
* Bugfix: Module Manager: Fixed invalid HTML IDs
|
584 |
+
* Bugfix: Module Manager: Module titles are now consistent between enabled and disabled states
|
585 |
+
* Bugfix: Module Manager: The "Silenced" option no longer disappears when all modules that support it are disabled
|
586 |
+
* Bugfix: Module Manager: The "Plugin Settings" module link no longer breaks when re-enabling that module
|
587 |
+
* Improvement: Added blank index.php files to additional plugin directories
|
588 |
+
|
589 |
= Version 1.7 (February 20, 2010) =
|
590 |
* Feature: Displays admin notices if blog privacy settings are configured to block search engines
|
591 |
|
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 titles, noindex, meta data, slugs, canonical tags, "more" links, 404 error tracking, and more.
|
6 |
-
Version: 1.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 1.7
|
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", "1.7");
|
42 |
define("SU_AUTHOR", "SEO Design Solutions");
|
43 |
define("SU_AUTHOR_URI", "http://www.seodesignsolutions.com/");
|
44 |
-
define("SU_USER_AGENT", "SeoUltimate/1.7");
|
45 |
|
46 |
/********** INCLUDES **********/
|
47 |
|
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 titles, noindex, meta data, slugs, canonical tags, "more" links, 404 error tracking, and more.
|
6 |
+
Version: 1.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 1.7.1
|
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", "1.7.1");
|
42 |
define("SU_AUTHOR", "SEO Design Solutions");
|
43 |
define("SU_AUTHOR_URI", "http://www.seodesignsolutions.com/");
|
44 |
+
define("SU_USER_AGENT", "SeoUltimate/1.7.1");
|
45 |
|
46 |
/********** INCLUDES **********/
|
47 |
|