Advertisement
simonwheatley

AIOSEOP Patch for notices

Oct 12th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.88 KB | None | 0 0
  1. 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
  2. index c8fed9c..7200249 100644
  3. --- a/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php
  4. +++ b/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php
  5. @@ -1155,8 +1155,8 @@ function aiosp_google_analytics(){
  6.  
  7.  
  8.     function post_meta_tags($id) {
  9. -       $awmp_edit = $_POST["aiosp_edit"];
  10. -       $nonce = $_POST['nonce-aioseop-edit'];
  11. +       $awmp_edit = isset( $_POST["aiosp_edit"] ) ? $_POST["aiosp_edit"] : null;
  12. +       $nonce = isset( $_POST['nonce-aioseop-edit'] ) ? $_POST['nonce-aioseop-edit'] : null;
  13.  //     if (!wp_verify_nonce($nonce, 'edit-aioseop-nonce')) die ( 'Security Check - If you receive this in error, log out and back in to WordPress');
  14.         if (isset($awmp_edit) && !empty($awmp_edit) && wp_verify_nonce($nonce, 'edit-aioseop-nonce')) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement