Skip to content

Commit

Permalink
change to home_url(), fix url int pages so no more ?=vars
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckreynolds committed Aug 26, 2013
1 parent cab5be0 commit 269d7c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wp-facebook-ogp.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,9 @@ public function build_head() {

// do url stuff
if ( is_home() || is_front_page() ) {
$url = get_bloginfo( 'url' );
$url = trailingslashit(home_url());
} else {
$url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
//$url = 'http' . ( is_ssl() ? 's' : '' ) . "://".$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$url = trailingslashit(home_url(add_query_arg(array(),$wp->request)));
}
echo '<meta property="og:url" content="' . esc_url( apply_filters( 'wpfbogp_url', $url ) ) . '" />' . "\n";

Expand Down

0 comments on commit 269d7c0

Please sign in to comment.