Skip to content

Commit

Permalink
revert url is_singular - broke category og:url. needs testing. bump #46
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckreynolds committed Feb 11, 2015
1 parent df0002f commit f020a1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wp-facebook-ogp.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ function wpfbogp_build_head() {
}

// do url stuff based on rel_canonical in wp
if ( !is_singular() ) {
#if ( !is_singular() ) {
if (is_home() || is_front_page() ) {
#$wpfbogp_url = get_bloginfo( 'url' ) . '/';
$wpfbogp_url = trailingslashit( home_url() );
} else {
$wpfbogp_url = 'http' . (is_ssl() ? 's' : '') . "://".$_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
Expand Down

0 comments on commit f020a1b

Please sign in to comment.