diff --git a/wp-facebook-ogp.php b/wp-facebook-ogp.php
index d9e1dd2..0b49937 100644
--- a/wp-facebook-ogp.php
+++ b/wp-facebook-ogp.php
@@ -74,15 +74,15 @@ function wpfbogp_start_ob() {
function wpfbogp_callback( $content ) {
// Grab the page title and meta description
$title = preg_match( '/
(.*)<\/title>/', $content, $title_matches );
- $description = preg_match( '//', '', $content );
+ $content = preg_replace( '//', '', $content );
}
-
+
if ( $description !== FALSE && count( $description_matches ) == 2 ) {
- $content = preg_replace( '//', '', $content );
+ $content = preg_replace( '//', '', $content );
}
return $content;