Version Description
Download this release
Release Info
Developer | hallsofmontezuma |
Plugin | All in One SEO Pack |
Version | 1.5 |
Comparing to | |
See all releases |
Code changes from version 1.4.91 to 1.5
- all_in_one_seo_pack.php +13 -7
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.
|
8 |
Author: Michael Torbert
|
9 |
Author URI: http://semperfiwebdesign.com
|
10 |
*/
|
@@ -476,7 +476,7 @@ $UTF8_TABLES['strtoupper'] = array(
|
|
476 |
|
477 |
class All_in_One_SEO_Pack {
|
478 |
|
479 |
-
var $version = "1.
|
480 |
|
481 |
/** Max numbers of chars in auto-generated description */
|
482 |
var $maximum_description_length = 160;
|
@@ -1463,12 +1463,12 @@ class All_in_One_SEO_Pack {
|
|
1463 |
$title = $wpdb->escape($_POST["aiosp_title"]);
|
1464 |
$old_category = $wpdb->get_row("select * from $this->table_categories where category_id=$id", OBJECT);
|
1465 |
if ($old_category) {
|
1466 |
-
$wpdb->query("update $this->table_categories
|
1467 |
set meta_title='$title', meta_keywords='$keywords'
|
1468 |
-
where category_id=$id");
|
1469 |
} else {
|
1470 |
-
$wpdb->query("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 |
/*
|
@@ -1645,6 +1645,8 @@ class All_in_One_SEO_Pack {
|
|
1645 |
|
1646 |
// update options
|
1647 |
if ($_POST['action'] && $_POST['action'] == 'aiosp_update') {
|
|
|
|
|
1648 |
$message = $message_updated;
|
1649 |
update_option('aiosp_can', $_POST['aiosp_can']);
|
1650 |
update_option('aiosp_donate', $_POST['aiosp_donate']);
|
@@ -1746,6 +1748,7 @@ $uri = "http://donations.semperfiwebdesign.com/category/highest-donations/feed/"
|
|
1746 |
include_once(ABSPATH . WPINC . '/rss.php');
|
1747 |
$rss = fetch_rss($uri);
|
1748 |
$maxitems = 5;
|
|
|
1749 |
$items = array_slice($rss->items, 0, $maxitems);
|
1750 |
?>
|
1751 |
<ul>
|
@@ -1758,12 +1761,14 @@ title='<?php echo $item['title']; ?>'>
|
|
1758 |
</a></li>
|
1759 |
<?php endforeach; ?>
|
1760 |
</ul>
|
|
|
1761 |
Donations
|
1762 |
<?php
|
1763 |
$uri = "http://donations.semperfiwebdesign.com/category/all-in-one-seo-pack/feed/";
|
1764 |
include_once(ABSPATH . WPINC . '/rss.php');
|
1765 |
$rss = fetch_rss($uri);
|
1766 |
$maxitems = 5;
|
|
|
1767 |
$items = array_slice($rss->items, 0, $maxitems);
|
1768 |
?>
|
1769 |
<ul>
|
@@ -1776,7 +1781,7 @@ title='<?php echo $item['title']; ?>'>
|
|
1776 |
</a></li>
|
1777 |
<?php endforeach; ?>
|
1778 |
</ul>
|
1779 |
-
|
1780 |
|
1781 |
<form name="dofollow" action="" method="post">
|
1782 |
<table class="form-table">
|
@@ -2244,6 +2249,7 @@ _e('All donations support continued development of this free software.', 'all_in
|
|
2244 |
</table>
|
2245 |
<p class="submit">
|
2246 |
<input type="hidden" name="action" value="aiosp_update" />
|
|
|
2247 |
<input type="hidden" name="page_options" value="aiosp_home_description" />
|
2248 |
<input type="submit" name="Submit" value="<?php _e('Update Options', 'all_in_one_seo_pack')?> »" />
|
2249 |
</p>
|
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 |
*/
|
476 |
|
477 |
class All_in_One_SEO_Pack {
|
478 |
|
479 |
+
var $version = "1.5";
|
480 |
|
481 |
/** Max numbers of chars in auto-generated description */
|
482 |
var $maximum_description_length = 160;
|
1463 |
$title = $wpdb->escape($_POST["aiosp_title"]);
|
1464 |
$old_category = $wpdb->get_row("select * from $this->table_categories where category_id=$id", OBJECT);
|
1465 |
if ($old_category) {
|
1466 |
+
$wpdb->query($wpdb->prepare("update $this->table_categories
|
1467 |
set meta_title='$title', meta_keywords='$keywords'
|
1468 |
+
where category_id=$id"));
|
1469 |
} else {
|
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 |
/*
|
1645 |
|
1646 |
// update options
|
1647 |
if ($_POST['action'] && $_POST['action'] == 'aiosp_update') {
|
1648 |
+
$nonce = $_POST['nonce-aioseop'];
|
1649 |
+
if (!wp_verify_nonce($nonce, 'aioseop-nonce')) die ( 'Security Check - If you receive this in error, log out and back in to WordPress');
|
1650 |
$message = $message_updated;
|
1651 |
update_option('aiosp_can', $_POST['aiosp_can']);
|
1652 |
update_option('aiosp_donate', $_POST['aiosp_donate']);
|
1748 |
include_once(ABSPATH . WPINC . '/rss.php');
|
1749 |
$rss = fetch_rss($uri);
|
1750 |
$maxitems = 5;
|
1751 |
+
if(is_array($rss->items)){
|
1752 |
$items = array_slice($rss->items, 0, $maxitems);
|
1753 |
?>
|
1754 |
<ul>
|
1761 |
</a></li>
|
1762 |
<?php endforeach; ?>
|
1763 |
</ul>
|
1764 |
+
<? } ?>
|
1765 |
Donations
|
1766 |
<?php
|
1767 |
$uri = "http://donations.semperfiwebdesign.com/category/all-in-one-seo-pack/feed/";
|
1768 |
include_once(ABSPATH . WPINC . '/rss.php');
|
1769 |
$rss = fetch_rss($uri);
|
1770 |
$maxitems = 5;
|
1771 |
+
if(is_array($rss->items)){
|
1772 |
$items = array_slice($rss->items, 0, $maxitems);
|
1773 |
?>
|
1774 |
<ul>
|
1781 |
</a></li>
|
1782 |
<?php endforeach; ?>
|
1783 |
</ul>
|
1784 |
+
<?php } ?>
|
1785 |
|
1786 |
<form name="dofollow" action="" method="post">
|
1787 |
<table class="form-table">
|
2249 |
</table>
|
2250 |
<p class="submit">
|
2251 |
<input type="hidden" name="action" value="aiosp_update" />
|
2252 |
+
<input type="hidden" name="nonce-aioseop" value="<?php echo wp_create_nonce('aioseop-nonce'); ?>" />
|
2253 |
<input type="hidden" name="page_options" value="aiosp_home_description" />
|
2254 |
<input type="submit" name="Submit" value="<?php _e('Update Options', 'all_in_one_seo_pack')?> »" />
|
2255 |
</p>
|