Version Description
Download this release
Release Info
Developer | hallsofmontezuma |
Plugin | All in One SEO Pack |
Version | 1.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.2
- all_in_one_seo_pack.php +16 -4
all_in_one_seo_pack.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: All in One SEO Pack
|
5 |
Plugin URI: http://semperfiwebdesign.com
|
6 |
Description: Out-of-the-box SEO for your Wordpress blog. <a href="options-general.php?page=all-in-one-seo-pack/all_in_one_seo_pack.php">Options configuration panel</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperfiwebdesign.com/documentation/all-in-one-seo-pack/all-in-one-seo-faq/" >Support</a>
|
7 |
-
Version: 1.5.
|
8 |
Author: Michael Torbert
|
9 |
Author URI: http://semperfiwebdesign.com
|
10 |
*/
|
@@ -474,6 +474,15 @@ $UTF8_TABLES['strtoupper'] = array(
|
|
474 |
"b" => "B", "a" => "A",
|
475 |
);
|
476 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
class All_in_One_SEO_Pack {
|
478 |
|
479 |
var $version = "1.5.1";
|
@@ -575,7 +584,7 @@ class All_in_One_SEO_Pack {
|
|
575 |
|
576 |
function init() {
|
577 |
if (function_exists('load_plugin_textdomain')) {
|
578 |
-
load_plugin_textdomain('all_in_one_seo_pack', '
|
579 |
}
|
580 |
}
|
581 |
|
@@ -597,7 +606,7 @@ class All_in_One_SEO_Pack {
|
|
597 |
|
598 |
function admin_head() {
|
599 |
$home = get_settings('siteurl');
|
600 |
-
$stylesheet =
|
601 |
echo('<link rel="stylesheet" href="' . $stylesheet . '" type="text/css" media="screen" />');
|
602 |
}
|
603 |
|
@@ -1470,7 +1479,7 @@ class All_in_One_SEO_Pack {
|
|
1470 |
$wpdb->query($wpdb->prepare("insert into $this->table_categories(meta_title, meta_keywords, category_id)
|
1471 |
values ('$title', '$keywords', $id"));
|
1472 |
}
|
1473 |
-
//$wpdb->query("insert into $this->table_categories")
|
1474 |
/*
|
1475 |
delete_post_meta($id, 'keywords');
|
1476 |
delete_post_meta($id, 'description');
|
@@ -2289,6 +2298,9 @@ add_option("aiosp_post_meta_tags", '', 'All in One SEO Plugin Additional Post Me
|
|
2289 |
add_option("aiosp_page_meta_tags", '', 'All in One SEO Plugin Additional Post Meta Tags', 'yes');
|
2290 |
add_option("aiosp_home_meta_tags", '', 'All in One SEO Plugin Additional Home Meta Tags', 'yes');
|
2291 |
add_option("aiosp_do_log", null, 'All in One SEO Plugin write log file', 'yes');
|
|
|
|
|
|
|
2292 |
|
2293 |
$aiosp = new All_in_One_SEO_Pack();
|
2294 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
4 |
Plugin Name: All in One SEO Pack
|
5 |
Plugin URI: http://semperfiwebdesign.com
|
6 |
Description: Out-of-the-box SEO for your Wordpress blog. <a href="options-general.php?page=all-in-one-seo-pack/all_in_one_seo_pack.php">Options configuration panel</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperfiwebdesign.com/documentation/all-in-one-seo-pack/all-in-one-seo-faq/" >Support</a>
|
7 |
+
Version: 1.5.2
|
8 |
Author: Michael Torbert
|
9 |
Author URI: http://semperfiwebdesign.com
|
10 |
*/
|
474 |
"b" => "B", "a" => "A",
|
475 |
);
|
476 |
|
477 |
+
if ( ! defined( 'WP_CONTENT_URL' ) )
|
478 |
+
define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
|
479 |
+
if ( ! defined( 'WP_CONTENT_DIR' ) )
|
480 |
+
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
481 |
+
if ( ! defined( 'WP_PLUGIN_URL' ) )
|
482 |
+
define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
|
483 |
+
if ( ! defined( 'WP_PLUGIN_DIR' ) )
|
484 |
+
define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
|
485 |
+
|
486 |
class All_in_One_SEO_Pack {
|
487 |
|
488 |
var $version = "1.5.1";
|
584 |
|
585 |
function init() {
|
586 |
if (function_exists('load_plugin_textdomain')) {
|
587 |
+
load_plugin_textdomain('all_in_one_seo_pack', WP_PLUGIN_DIR . '/all-in-one-seo-pack');
|
588 |
}
|
589 |
}
|
590 |
|
606 |
|
607 |
function admin_head() {
|
608 |
$home = get_settings('siteurl');
|
609 |
+
$stylesheet = WP_PLUGIN_URL . $this->get_base() . '/css/all_in_one_seo_pack.css';
|
610 |
echo('<link rel="stylesheet" href="' . $stylesheet . '" type="text/css" media="screen" />');
|
611 |
}
|
612 |
|
1479 |
$wpdb->query($wpdb->prepare("insert into $this->table_categories(meta_title, meta_keywords, category_id)
|
1480 |
values ('$title', '$keywords', $id"));
|
1481 |
}
|
1482 |
+
//$wpdb->query($wpdb->prepare("insert into $this->table_categories"))
|
1483 |
/*
|
1484 |
delete_post_meta($id, 'keywords');
|
1485 |
delete_post_meta($id, 'description');
|
2298 |
add_option("aiosp_page_meta_tags", '', 'All in One SEO Plugin Additional Post Meta Tags', 'yes');
|
2299 |
add_option("aiosp_home_meta_tags", '', 'All in One SEO Plugin Additional Home Meta Tags', 'yes');
|
2300 |
add_option("aiosp_do_log", null, 'All in One SEO Plugin write log file', 'yes');
|
2301 |
+
//$role = get_role('administrator');
|
2302 |
+
//$role->add_cap('Edit AIOSEOP Options');
|
2303 |
+
//$role->add_cap('Edit AIOSEOP on Posts/Pages');
|
2304 |
|
2305 |
$aiosp = new All_in_One_SEO_Pack();
|
2306 |
add_action('wp_head', array($aiosp, 'wp_head'));
|