
AIOSEOP Patch for notices
By:
simonwheatley on
Oct 12th, 2012 | syntax:
Diff | size: 0.88 KB | hits: 42 | expires: Never
diff --git a/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php b/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php
index c8fed9c..7200249 100644
--- a/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php
+++ b/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php
@@ -1155,8 +1155,8 @@ function aiosp_google_analytics(){
function post_meta_tags($id) {
- $awmp_edit = $_POST["aiosp_edit"];
- $nonce = $_POST['nonce-aioseop-edit'];
+ $awmp_edit = isset( $_POST["aiosp_edit"] ) ? $_POST["aiosp_edit"] : null;
+ $nonce = isset( $_POST['nonce-aioseop-edit'] ) ? $_POST['nonce-aioseop-edit'] : null;
// if (!wp_verify_nonce($nonce, 'edit-aioseop-nonce')) die ( 'Security Check - If you receive this in error, log out and back in to WordPress');
if (isset($awmp_edit) && !empty($awmp_edit) && wp_verify_nonce($nonce, 'edit-aioseop-nonce')) {