Plugin Directory

Changeset 533362


Ignore:
Timestamp:
04/19/2012 09:41:25 AM (14 years ago)
Author:
bemcapaz
Message:

improved og:url creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • seo-facebook-comments/trunk/seofacebook.php

    r533346 r533362  
    316316            //$postUrl = get_permalink($postId);
    317317
    318             // tweak, again thanks to @ Marcin Pietrzak,allow facebok to keep track of post even if the permalink is changed
    319             $postUrl = home_url('?p='.$postId);
    320318            $siteName = get_bloginfo('name');
    321319            $appId = $this->options['app'];
     
    324322            {
    325323                $postTitle = $siteName;
     324                $postUrl = home_url();
    326325            }
    327326            else if ( is_category() )
     
    329328                $category = get_the_category();
    330329                $postTitle = $category[0]->cat_name . ' - ' . $siteName;
     330                $postUrl = home_url('?cat='.$category[0]->term_id);
    331331            }
    332332            else
    333                 $postTitle = single_post_title('', false);
     333            {
     334                $postUrl = home_url('?p='.$postId);
     335                $postTitle = single_post_title('', false);
     336            }
    334337
    335338            // Avoid OG errors by making sure exists a Admin ID
Note: See TracChangeset for help on using the changeset viewer.