Advertisement
Guest User

SEO Facebook Comments - unchangeable link

a guest
Mar 14th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. --- seofacebook.php 2012-03-14 11:54:21.696764529 +0100
  2. +++ ../seofacebook.php 2012-03-14 11:45:36.106764812 +0100
  3. @@ -312,6 +312,7 @@
  4.  
  5. $postId = $wp_query->post->ID;
  6. $postUrl = get_permalink($postId);
  7. + $postUrl = home_url('?p='.$postId);
  8. $siteName = get_bloginfo('name');
  9. $appId = $this->options['app'];
  10.  
  11. @@ -392,6 +393,7 @@
  12.  
  13. $postId = $wp_query->post->ID;
  14. $postUrl = get_permalink($postId);
  15. + $postUrl = home_url('?p='.$postId);
  16.  
  17. # Only insert Facebook Comments if App ID and Secret is set
  18. if (!empty($this->options['app']) && !empty($this->options['secret']) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement