Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.2.5.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.5.3 to 1.2.5.4
- all_in_one_seo_pack.php +15 -2
all_in_one_seo_pack.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: All in One SEO Pack
|
| 5 |
Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
|
| 6 |
Description: Out-of-the-box SEO for your Wordpress blog.
|
| 7 |
-
Version: 1.2.5.
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
|
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
| 28 |
|
| 29 |
class All_in_One_SEO_Pack {
|
| 30 |
|
| 31 |
-
var $version = "1.2.5.
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Number of words to be used (max) for generating an excerpt.
|
|
@@ -41,6 +41,10 @@ class All_in_One_SEO_Pack {
|
|
| 41 |
*/
|
| 42 |
var $minimum_excerpt_length = 1;
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
function template_redirect() {
|
| 45 |
if (get_option('aiosp_max_words_excerpt') && is_numeric(get_option('aiosp_max_words_excerpt'))) {
|
| 46 |
$this->maximum_excerpt_length = get_option('aiosp_max_words_excerpt');
|
|
@@ -264,6 +268,14 @@ class All_in_One_SEO_Pack {
|
|
| 264 |
|
| 265 |
return $this->get_unique_keywords($keywords);
|
| 266 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
|
| 268 |
function get_unique_keywords($keywords) {
|
| 269 |
$keywords_ar = array_unique($keywords);
|
|
@@ -591,6 +603,7 @@ add_option("aiosp_post_title_format", '%post_title% | %blog_title%', __('All in
|
|
| 591 |
add_option("aiosp_page_title_format", '%page_title% | %blog_title%', __('All in One SEO Plugin Page Title Format', 'all_in_one_seo_pack'), 'yes');
|
| 592 |
|
| 593 |
$aiosp = new All_in_One_SEO_Pack();
|
|
|
|
| 594 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
| 595 |
add_action('template_redirect', array($aiosp, 'template_redirect'));
|
| 596 |
|
| 4 |
Plugin Name: All in One SEO Pack
|
| 5 |
Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
|
| 6 |
Description: Out-of-the-box SEO for your Wordpress blog.
|
| 7 |
+
Version: 1.2.5.4
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
| 28 |
|
| 29 |
class All_in_One_SEO_Pack {
|
| 30 |
|
| 31 |
+
var $version = "1.2.5.4";
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Number of words to be used (max) for generating an excerpt.
|
| 41 |
*/
|
| 42 |
var $minimum_excerpt_length = 1;
|
| 43 |
|
| 44 |
+
var $table_prefix = "aiosp_";
|
| 45 |
+
|
| 46 |
+
var $db_version = '0.1';
|
| 47 |
+
|
| 48 |
function template_redirect() {
|
| 49 |
if (get_option('aiosp_max_words_excerpt') && is_numeric(get_option('aiosp_max_words_excerpt'))) {
|
| 50 |
$this->maximum_excerpt_length = get_option('aiosp_max_words_excerpt');
|
| 268 |
|
| 269 |
return $this->get_unique_keywords($keywords);
|
| 270 |
}
|
| 271 |
+
|
| 272 |
+
function db_install() {
|
| 273 |
+
global $wpdb;
|
| 274 |
+
die("db_install");
|
| 275 |
+
$table_categories = $wpdb->prefix . $this->table_prefix . "categories";
|
| 276 |
+
if($wpdb->get_var("show tables like '$table_categories'") != $table_categories) {
|
| 277 |
+
}
|
| 278 |
+
}
|
| 279 |
|
| 280 |
function get_unique_keywords($keywords) {
|
| 281 |
$keywords_ar = array_unique($keywords);
|
| 603 |
add_option("aiosp_page_title_format", '%page_title% | %blog_title%', __('All in One SEO Plugin Page Title Format', 'all_in_one_seo_pack'), 'yes');
|
| 604 |
|
| 605 |
$aiosp = new All_in_One_SEO_Pack();
|
| 606 |
+
//add_action('activate_all-in-one-seo-pack/all_in_one_seo_pack.php', array($aiosp, 'db_install'));
|
| 607 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
| 608 |
add_action('template_redirect', array($aiosp, 'template_redirect'));
|
| 609 |
|
