Want more features on Pastebin? Sign Up, it's FREE!
Guest

AIOSEOP Patch for notices

By: simonwheatley on Oct 12th, 2012  |  syntax: Diff  |  size: 0.88 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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')) {
clone this paste RAW Paste Data