Changeset 533362
- Timestamp:
- 04/19/2012 09:41:25 AM (14 years ago)
- File:
-
- 1 edited
-
seo-facebook-comments/trunk/seofacebook.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seo-facebook-comments/trunk/seofacebook.php
r533346 r533362 316 316 //$postUrl = get_permalink($postId); 317 317 318 // tweak, again thanks to @ Marcin Pietrzak,allow facebok to keep track of post even if the permalink is changed319 $postUrl = home_url('?p='.$postId);320 318 $siteName = get_bloginfo('name'); 321 319 $appId = $this->options['app']; … … 324 322 { 325 323 $postTitle = $siteName; 324 $postUrl = home_url(); 326 325 } 327 326 else if ( is_category() ) … … 329 328 $category = get_the_category(); 330 329 $postTitle = $category[0]->cat_name . ' - ' . $siteName; 330 $postUrl = home_url('?cat='.$category[0]->term_id); 331 331 } 332 332 else 333 $postTitle = single_post_title('', false); 333 { 334 $postUrl = home_url('?p='.$postId); 335 $postTitle = single_post_title('', false); 336 } 334 337 335 338 // Avoid OG errors by making sure exists a Admin ID
Note: See TracChangeset
for help on using the changeset viewer.